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

From: Emanuel Rumpf <xbran@email-addr-hidden>
Date: Thu Mar 22 2012 - 10:03:12 EET

Am 21. März 2012 18:28 schrieb Joel Roth <joelz@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.

--
E.R.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Thu Mar 22 12:15:01 2012

This archive was generated by hypermail 2.1.8 : Thu Mar 22 2012 - 12:15:01 EET