Boost logo

Boost :

Subject: Re: [boost] [interprocess] More robust message_queue and interprocess_condition?
From: kopo (kopinskc_at_[hidden])
Date: 2011-05-07 21:46:36

Ross MacGregor wrote:
> I am considering a slight modification to this solution, I will post
> it in more detail when I get time. Basically, instead of changing
> interprocess_condition we should modify the interprocess_mutex lock
> function to time out instead. The lock function could simply call
> through to timed_lock() and throw an exception if it times out. This
> would be more effective change for the library.

Are you proposing a modification such as:

inline void interprocess_condition::notify(boost::uint32_t command)
        boost::posix_time::ptime till =
boost::posix_time::microsec_clock::universal_time() +
                throw interprocess_exception(lock_error);

where you would just provide a timed lock on the notify?
Possibly in a notify_timed function. Where the time to wait could be
specified in construction of the message queue.

Are you planning on submitting your proposal to the library for
consideration in the next release?

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at