Commit 63d78232 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[FIX #299] boost assertion fixed. Boost now requires a unique lock before...

[FIX #299] boost assertion fixed. Boost now requires a unique lock before waiting on a condition variable.
parent 05ddda63
...@@ -36,6 +36,8 @@ WCondition::~WCondition() ...@@ -36,6 +36,8 @@ WCondition::~WCondition()
void WCondition::wait() const void WCondition::wait() const
{ {
// since Boost 1.54, we need to explicitly lock the mutex prior to wait.
boost::unique_lock<boost::shared_mutex> lock( m_mutex );
m_condition.wait( m_mutex ); m_condition.wait( m_mutex );
} }
......
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