Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55482 - trunk/boost/interprocess/sync/emulation
From: igaztanaga_at_[hidden]
Date: 2009-08-09 04:19:48


Author: igaztanaga
Date: 2009-08-09 04:19:46 EDT (Sun, 09 Aug 2009)
New Revision: 55482
URL: http://svn.boost.org/trac/boost/changeset/55482

Log:
Fixed deadlock problem
Text files modified:
   trunk/boost/interprocess/sync/emulation/interprocess_semaphore.hpp | 4 +---
   1 files changed, 1 insertions(+), 3 deletions(-)

Modified: trunk/boost/interprocess/sync/emulation/interprocess_semaphore.hpp
==============================================================================
--- trunk/boost/interprocess/sync/emulation/interprocess_semaphore.hpp (original)
+++ trunk/boost/interprocess/sync/emulation/interprocess_semaphore.hpp 2009-08-09 04:19:46 EDT (Sun, 09 Aug 2009)
@@ -29,9 +29,7 @@
 inline void interprocess_semaphore::post()
 {
    scoped_lock<interprocess_mutex> lock(m_mut);
- if(m_count == 0){
- m_cond.notify_one();
- }
+ m_cond.notify_one();
    ++m_count;
 }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk