mirror of https://github.com/Icinga/icinga2.git
parent
a2c5887e51
commit
1c0102ff9b
|
@ -75,7 +75,7 @@ public:
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
if (m_Locked) {
|
if (m_Locked) {
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
InterlockedExchange(&m_Object->m_Locked, 0);
|
InterlockedExchange(&m_Object->m_LockOwner, 0);
|
||||||
# else /* _WIN32 */
|
# else /* _WIN32 */
|
||||||
__sync_lock_test_and_set(&m_Object->m_LockOwner, 0);
|
__sync_lock_test_and_set(&m_Object->m_LockOwner, 0);
|
||||||
# endif /* _WIN32 */
|
# endif /* _WIN32 */
|
||||||
|
|
Loading…
Reference in New Issue