Re: Glib::Dispatcher1<T>



On Sat, 2007-01-20 at 19:16 +0000, Chris Vine wrote:

> On a completely different point, also applicable to Glib::Dispatcher: the 
> Posix standard guarantees atomic writes to pipes between different processes 
> where the data is PIPE_BUF or less in size, but not between different threads 
> in the same process.  I agree that an implementation would have to work hard 
> not to have atomic writes between threads if it does so between processes, 
> but it isn't formally guaranteed.  If you were worried about it you could put 
> a mutex around the call to write().  (I would not be worried if I were using 
> Linux.  I could not hazard a guess about other Unix-type OSs.)

FYI, we discovered that FIFO's on OS X are dog slow. When Stephane Letz
ported JACK, which uses FIFO's to accomplish directed process wakeup, he
was forced to drop down to the Mach layer and use Mach ports to get
equivalent performance.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]