Mutex: Locks should be recursive.
This commit is contained in:
parent
caa58acc84
commit
1b0bf00cbc
2 changed files with 19 additions and 15 deletions
|
@ -30,8 +30,7 @@ public:
|
|||
static const HandleType HANDLE_TYPE = HandleType::Mutex;
|
||||
HandleType GetHandleType() const override { return HANDLE_TYPE; }
|
||||
|
||||
bool initial_locked; ///< Initial lock state when mutex was created
|
||||
bool locked; ///< Current locked state
|
||||
int lock_count; ///< Number of times the mutex has been acquired
|
||||
std::string name; ///< Name of mutex (optional)
|
||||
SharedPtr<Thread> holding_thread; ///< Thread that has acquired the mutex
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue