We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6a304f commit e6c0300Copy full SHA for e6c0300
src/xrCore/Threading/Lock.hpp
@@ -31,7 +31,11 @@ class XRCORE_API Lock
31
#ifdef CONFIG_PROFILE_LOCKS
32
void Enter();
33
#else
34
- void Enter() { return mutex.lock(); isLocked = true; }
+ void Enter()
35
+ {
36
+ mutex.lock();
37
+ isLocked = true;
38
+ }
39
#endif
40
41
bool TryEnter()
@@ -44,7 +48,11 @@ class XRCORE_API Lock
44
48
return locked;
45
49
}
46
50
47
- void Leave() { return mutex.unlock(); isLocked = false; }
51
+ void Leave()
52
53
+ isLocked = false;
54
+ mutex.unlock();
55
56
57
bool IsLocked() const { return isLocked; }
58
0 commit comments