diff --git a/src/recursive_mutex.cpp b/src/recursive_mutex.cpp index 63ad1a79..d6974258 100644 --- a/src/recursive_mutex.cpp +++ b/src/recursive_mutex.cpp @@ -120,7 +120,7 @@ bool recursive_try_mutex::do_trylock() if (res == WAIT_OBJECT_0) { - if (+++m_count > 1) + if (++m_count > 1) { res = ReleaseMutex(reinterpret_cast(m_mutex)); assert(res); @@ -195,7 +195,7 @@ bool recursive_timed_mutex::do_trylock() if (res == WAIT_OBJECT_0) { - if (+++m_count > 1) + if (++m_count > 1) { res = ReleaseMutex(reinterpret_cast(m_mutex)); assert(res); @@ -216,7 +216,7 @@ bool recursive_timed_mutex::do_timedlock(const xtime& xt) if (res == WAIT_OBJECT_0) { - if (+++m_count > 1) + if (++m_count > 1) { res = ReleaseMutex(reinterpret_cast(m_mutex)); assert(res);