Unlock mutex in constructor
This commit is contained in:
parent
7d5ce2fc83
commit
3262976401
|
@ -52,7 +52,10 @@ int Lib::Thread::GetThreadIdUnique() {
|
|||
return tid;
|
||||
}
|
||||
|
||||
Lib::Mutex::Mutex() { m_mutex = new MutexStructInternal(); }
|
||||
Lib::Mutex::Mutex() {
|
||||
m_mutex = new MutexStructInternal();
|
||||
UnlockMutex();
|
||||
}
|
||||
|
||||
Lib::Mutex::~Mutex() { delete m_mutex; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue