Leave lock unlocked after assertNotEntered
This commit is contained in:
parent
50592d58fd
commit
0c78577854
|
@ -69,7 +69,10 @@ public:
|
|||
ANNOTATE_RWLOCK_RELEASED(this, true);
|
||||
#endif
|
||||
}
|
||||
void assertNotEntered() { ASSERT(!isLocked.test_and_set(std::memory_order_acquire)); }
|
||||
void assertNotEntered() {
|
||||
ASSERT(!isLocked.test_and_set(std::memory_order_acquire));
|
||||
isLocked.clear(std::memory_order_release);
|
||||
}
|
||||
|
||||
private:
|
||||
ThreadSpinLock(const ThreadSpinLock&);
|
||||
|
|
Loading…
Reference in New Issue