Unlock mutex in constructor

This commit is contained in:
wheremyfoodat 2023-09-29 18:19:01 +03:00
parent 7d5ce2fc83
commit 3262976401

View File

@ -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; }