Am 28. März 2012 19:35 schrieb Ed Sweeney <ed(a)onextent.com>om>:
Hi folks. I'm the author, new to the list, new to audio, been on vacation
but back now and hoping to learn and contribute. Programming / playing with
jack has been fun!
Emanuel, thx for the suggestion. The job of that mutex is to block the
callback until the user code has run, _trylock wouldn't do that.
Thanks for asking back.
Note:
JacksEventQueue_put()
uses malloc() and also a blocking mutex.
This has to be modified to be lock-free (non-blocking).
But rather use a different, existing, verified data-structure.
jack_ringbuffer is a possible option, for IO to/from the callback.
more here:
[[
http://wiki.linuxaudio.org/wiki/programming_libraries#lockfree_non-blocking…
}}
But don't get lost. The topic is large... ;)
Your code looks very clean.
I like that you are using C.
Emanuel
--
E.R.