[LAD] JACK session API in Perl, Python, Ruby, and Lua

Joel Roth joelz at pobox.com
Thu Mar 22 15:55:31 UTC 2012


On Thu, Mar 22, 2012 at 09:03:12AM +0100, Emanuel Rumpf wrote:
> Am 21. März 2012 18:28 schrieb Joel Roth <joelz at pobox.com>:
> >
> > https://github.com/navicore/Jacks
> >
> 
> hm ...
> The code uses a mutex_lock in the process callback:
> 
>     _lock(_this_);
>     _this_->nframes = nframes;
>     _unlock(_this_);
> 
> 
> From the doc of pthread_mutex_lock:  "If the mutex is already locked,
> the calling thread blocks until the mutex becomes available."
> 
> A try-lock (pthread_mutex_trylock) may be less likely to disturb jacks
> process flow.

I've forwarded your reply, and suggested the author join 
the list. :-)

Regards,

-- 
Joel Roth



More information about the Linux-audio-dev mailing list