Subject: Re: [boost] [Interprocess::Semaphore] Deadlock on more producers - one consumer problem
From: Cosimo Calabrese (cosimo.calabrese_at_[hidden])
Date: 2009-06-22 07:46:42
> Yes, I think you are right. post() should unconditionally notify_one(),
> otherwise, we could post() several times and only wake up one thread.
> Can you test your code removing the m_count == 0 condition?
Well, I've removed the m_count == 0 condition and it seems to work
properly. Every time a protected resource is freed, a notify_one() is
performed and a locked thread is unlocked.
Do you take in consideration a correction in a next boost release?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk