Skip to content

Commit

Permalink
xrCore/Threading/Lock: Fixed code style.
Browse files Browse the repository at this point in the history
Sorry for the noise.
  • Loading branch information
Kaffeine committed Nov 15, 2015
1 parent ea441eb commit 30b64b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/xrCore/Threading/Lock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@ class XRCORE_API Lock
void Enter()
{
mutex.lock();
++lockCounter;
lockCounter++;
}
#endif

bool TryEnter()
{
bool locked = mutex.try_lock();
if (locked)
++lockCounter;
lockCounter++;
return locked;
}

void Leave()
{
mutex.unlock();
--lockCounter;
lockCounter--;
}

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

0 comments on commit 30b64b5

Please sign in to comment.