Re: [linux-audio-dev] Lock-free gtk/jack interaction

From: Olivier Guilyardi <ml@email-addr-hidden>
Date: Mon Mar 14 2005 - 00:01:50 EET

Melanie wrote:
> Wouldn't it be better to put the structures in shared memory and not use
> any locking / signalling at all?

There's a need for syncing threads. It is not possible to touch the
tracks/bpm/etc directly while jack's process callback is in the middle of its
work. Some actions do not require any ack from the jack thread, like setting the
bpm, but when it comes to reallocating data (for ex: adding/removing a track)
that is currently needed.

However, all actions (with or without any ack) currently require using some sort
of message queue or fifo, and I don't see how and why this would change.

--
   og
Received on Mon Mar 14 00:15:13 2005

This archive was generated by hypermail 2.1.8 : Mon Mar 14 2005 - 00:15:13 EET