[linux-audio-dev] jack_callback <-> rest of the world

Florian Schmidt mista.tapas at gmx.net
Wed Dec 7 11:12:49 UTC 2005


On Wed, 7 Dec 2005 09:30:28 +0100
Stéphane Letz <letz at grame.fr> wrote:

>   jackd (of jackdmp in "synch" mode) where the server waits for all  
> clients to finish in a given cycle require the used synchronization  
> primitive to have a "wait with time-out" operation.  Fifo can do that  
> (using poll), Mach semaphore on OSX can do that, but POSIX named  
> semaphore not.
> 
> Do process shared mutexes/CVs have a  "wait with time-out" operation.?

Well, there's

int   pthread_cond_timedwait(pthread_cond_t   *cond,    pthread_mutex_t
      *mutex, const struct timespec *abstime);

(from man "pthread_cond_wait") which probably works with a condition
variable/mutex pair in shared memoryu, too.

But i don't know anything about any timing guarantees. I suppose POSIX
simply doesn't make any. Anyways, the precision of the timed wait is
probably implementation dependent. 

Regards,
Flo

-- 
Palimm Palimm!
http://tapas.affenbande.org




More information about the Linux-audio-dev mailing list