Boost logo

Boost Users :

Subject: Re: [Boost-users] [Interprocess] How to interrupt interprocess_condition::wait()?
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2012-03-23 07:10:53


El 22/03/2012 22:06, wright_left escribió:
> I had a simple concurrent queue that was working fine shuffling data between
> threads. Now I want to use it between processes. I switched out the
> boost::condition_variable for a boost::interprocess::interprocess_condition.
> The queue funcitons normally, except that I can't interrupt the thread
> waiting on the queue. Previously I simply called boost::thread::interrupt()
> and the thread would die (with the interrupt exception I assume). But
> interprocess_condition::wait() doesn't seem to care about the interrupt.

Interprocess does not support interruption as it is not trivial to
implement. Standard C++ condition variables don't require interruption,
so it is not uncommon to miss those in synchronization primitives.

Any help is appreciated to add this support to Interprocess ;-)

Best,

Ion


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net