Commit 7631a336 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

compat: Condition Variable: Fix inverted logic

parent 5f8549ff
......@@ -84,7 +84,7 @@ public:
while ( pred() == false )
{
auto now = std::chrono::system_clock::now();
if ( SleepConditionVariableCS( &m_cond, lock.mutex()->native_handle(), timeout.count() ) != 0 )
if ( SleepConditionVariableCS( &m_cond, lock.mutex()->native_handle(), timeout.count() ) == 0 )
{
auto res = GetLastError();
if ( res == ERROR_TIMEOUT )
......
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