[linux-audio-dev] XAP and background processing

David Olofson david at olofson.net
Thu Dec 19 16:21:01 UTC 2002


On Thursday 19 December 2002 21.24, Steve Harris wrote:
> On Thu, Dec 19, 2002 at 12:19:46 +0100, David Olofson wrote:
> > Nope, I'm not going to suggest a complete threading API here.
> > That - if it's ever going to be part of XAP - will have to way
> > until we know what we're doing. (Use pthreads for now. Just don't
> > get any ideas about toolkits and stuff...)
>
> Looks like more complexity to me :(

pthreads, or the worker call system?

It's just that if you use pthreads even for temporary background jobs 
(loading files and stuff), you'll force off-line hosts to be aware of 
if. The worker call API allows such hosts to simply call the worker 
callback right away. (I've posted example code for that earlier.)


//David Olofson - Programmer, Composer, Open Source Advocate

.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`---------------------------> http://olofson.net/audiality -'
   --- http://olofson.net --- http://www.reologica.se ---



More information about the Linux-audio-dev mailing list