Commit 507cac64 authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX #442] wait method of WConditionOneShot

parent eee94a2e
......@@ -46,9 +46,10 @@ WConditionOneShot::~WConditionOneShot()
void WConditionOneShot::wait() const
// now we wait until the write lock is released and we can get a read lock
boost::shared_lock<std::shared_mutex> slock = boost::shared_lock<std::shared_mutex>( m_mutex );
if( m_lock.owns_lock() )
m_condition.wait( m_mutex );
void WConditionOneShot::notify()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment