Skip to content

Commit a8f5a35

Browse files
committed
xrCore/Threading/Lock.hpp: The lock allows recursion now.
1 parent f6b56db commit a8f5a35

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
@@ -49,7 +49,7 @@ class XRCORE_API Lock
4949
bool IsLocked() const { return isLocked; }
5050

5151
private:
52-
std::mutex mutex;
52+
std::recursive_mutex mutex;
5353
std::atomic_bool isLocked;
5454
#ifdef CONFIG_PROFILE_LOCKS
5555
const char *id;

0 commit comments

Comments
 (0)