[PD] flext, threading

Thomas Grill t.grill at gmx.net
Mon May 5 16:42:14 CEST 2003


Hi August,
this is fairly easy.

The functionality of flext is split into several classes, of which the most
important are:

flext: This one only has static elements, providing basic functionality but
nothing external-related
flext_base: class for message externals
flext_dsp: inherited from flext_base with DSP functions

If you only want to use flext threading you just need to inherit from the
class flext.
See flext_support.h (or the flext documentation on the website) for all the
methods contained therein.

good luck,
Thomas

----- Original Message -----
From: "august" <august at alien.mur.at>
To: <pd-list at iem.kug.ac.at>
Sent: Monday, May 05, 2003 4:19 PM
Subject: [PD] flext, threading


>
>
> Thomas,
>
> is it possible to use the flext API as a wrapper for pthreads?
>
> what I have is one class, the main class, called readanysf.cpp.  in that
> is the  FLEXT_HEADER(readanysf, flext_dsp).
>
> this file then creates other c++ objects as container structures to play
> audio.  Inside one of these (the one for playing mp3 streaming from the
> net, called ReadMadUrl.cpp), I'd like to start another thread.  However, I
> couldn't figure out how (if possible) to set up the class so that it
> inherits properly from flext without it having to be a pd object itself.
>
> At the moment I'm doing it with pthread calls directly.  But, if possible,
> I'd like to use the flext API to try to keep things uniform.
>
> Is this possible?
>
>
> - august.
>
>
> _______________________________________________
> PD-list mailing list
> PD-list at iem.kug.ac.at
> http://iem.kug.ac.at/cgi-bin/mailman/listinfo/pd-list
>
>





More information about the Pd-list mailing list