Re: [LAD] Best practice for sharing complex data structures with a jack callback function

From: Lars Luthman <lars.luthman@email-addr-hidden>
Date: Sat Jul 07 2007 - 03:44:31 EEST

On Sat, 2007-07-07 at 02:34 +0200, Fons Adriaensen wrote:
> * The callback has to know when it can (re)write the object.
> Clearly it should never wait on a sema, and it is already
> periodic, so here you can use a flag in the object.

Is there any advantage in using a simple flag instead of a semaphore and
sem_trywait()?

--ll

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo.cgi/linux-audio-dev

Received on Sat Jul 7 04:15:04 2007

This archive was generated by hypermail 2.1.8 : Sat Jul 07 2007 - 04:15:05 EEST