From 4f417b4912ba791630eeb9e7af2d77cdd8dc1765 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 12 Nov 2014 13:18:34 +0100 Subject: [PATCH] Add release barrier in ObjectLock::Unlock refs #7648 --- lib/base/objectlock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/objectlock.hpp b/lib/base/objectlock.hpp index 2bd1e4cb6..a98cfee15 100644 --- a/lib/base/objectlock.hpp +++ b/lib/base/objectlock.hpp @@ -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 */