Skip to content

Commit 82e3f09

Browse files
author
nitrocaster
committed
Lock: reset lock flag after mutex unlock.
1 parent 63d9d93 commit 82e3f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/xrCore/Threading/Lock.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ class XRCORE_API Lock
4848

4949
void Leave()
5050
{
51+
mutex.unlock();
5152
isLocked = false;
52-
mutex.unlock();
5353
}
5454

5555
bool IsLocked() const { return isLocked; }

0 commit comments

Comments
 (0)