Add release barrier in ObjectLock::Unlock

refs #7648
This commit is contained in:
Gunnar Beutner 2014-11-12 13:18:34 +01:00
parent 1c0102ff9b
commit 4f417b4912
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ public:
# ifdef _WIN32
InterlockedExchange(&m_Object->m_LockOwner, 0);
# else /* _WIN32 */
__sync_lock_test_and_set(&m_Object->m_LockOwner, 0);
__sync_lock_release(&m_Object->m_LockOwner);
# endif /* _WIN32 */
}
#endif /* _DEBUG */