[linux-audio-dev] jack_callback <-> rest of the world
Dave Robillard
drobilla at connect.carleton.ca
Sun Oct 30 03:03:39 UTC 2005
On Sun, 2005-30-10 at 00:42 +0200, Richard Spindler wrote:
> I read the tutorial at http://userpages.umbc.edu/~berman3/ , it uses
> mutex+condition, is it okay to do this? Are there better ways?
That's a wonderful tutorial... on how NOT to write a Jack client.
(There's no lock free data structures "in C" or Linux? There's one
_included with Jack_...)
On mutexes, calling pthread_mutex_trylock in the process thread is okay,
but pthread_mutex_lock is not. Don't Do That(TM).
-DR-
More information about the Linux-audio-dev
mailing list