[LAD] Best practice for sharing complex data structures with a jack callback function
Lars Luthman
lars.luthman at gmail.com
Sat Jul 7 00:44:31 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20070707/097ccc02/attachment.pgp>
More information about the Linux-audio-dev
mailing list