[Portaudio] linux port and threading

Vincent Dumas vdumas2000@yahoo.com
Mon, 28 May 2001 20:00:41 -0700 (PDT)


I agree with you Douglas,
I'm using pthread because it compiles everywhere with
small changes.

Vincent
--- douglas irving repetto
<douglas@music.columbia.edu> wrote:
> i generally use pthreads for my threaded linux apps.
> i think that that's
> the best way to go.
> 
> douglas
> 
> Phil Burk wrote:
> > 
> > Hello Steven,
> > 
> > Stephen Brandon wrote:
> > > So, I made a couple of changes to pa_linux.c to
> change from __clone to pthreads, and it now works
> > > again perfectly in SndKit.
> > >
> > > So the question is, is there any particular
> reason why portaudio (linux) should not use pthreads
> > > instead of __clone? According to the man page
> for clone, clone is not portable, whereas pthreads
> are
> > > available on a number of other platforms. And
> the change to the pa_linux code is pretty minor.
> > 
> > Thanks for the advice. This sort of information
> sharing is what I like
> > about PortAudio being OpenSource. It is impossible
> to be an expert on
> > all of OSS, Linux, DX, Win32, WMME, MacOS,
> CoreAudio, ALSA, VST, WDM,
> > etc. But hopefully together we can sort out what
> needs to be done.
> > 
> > > I'll send diffs to anyone who wants them.
> > 
> > Thanks for the diffs. I am working on
> Linux/PortAudio today so I'll give
> > it a shot. I'll make it a compile time switch
> until any debate is
> > resolved. But clone() may have just been chosen
> out of ignorance on my
> > part so there may not be any reason at all to use
> it. I started out
> > using fork()!
> > 
> > --
> > Phil Burk
> > JSyn,pForth,DSP,ASIC - http://www.softsynth.com
> > Portable Audio I/O   - http://www.portaudio.com
> > Interaction Server   - http://www.transjam.com
> > 
> > _______________________________________________
> > Portaudio mailing list
> > Portaudio@music.columbia.edu
> > http://music.columbia.edu/mailman/listinfo/portaudio
> 
> -- 
>                         douglas irving repetto 
>                   http://music.columbia.edu/~douglas
> 
>                   http://shoko.calarts.edu/musicdsp
>               
http://music.columbia.edu/cmc/dorkbotnyc


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/