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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Thursday, March 22, 2012 - 8:03 am

Am 21. März 2012 18:28 schrieb Joel Roth :

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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [LAD] JACK session API in Perl, Python, Ruby, and Lua, Emanuel Rumpf, (Thu Mar 22, 8:03 am)
Re: [LAD] JACK session API in Perl, Python, Ruby, and Lua, David Robillard, (Thu Mar 22, 1:02 am)