Skip to content

Commit

Permalink
Lock: reset lock flag after mutex unlock.
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocaster committed Nov 15, 2015
1 parent 63d9d93 commit 82e3f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xrCore/Threading/Lock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class XRCORE_API Lock

void Leave()
{
mutex.unlock();
isLocked = false;
mutex.unlock();
}

bool IsLocked() const { return isLocked; }
Expand Down

0 comments on commit 82e3f09

Please sign in to comment.