From 64b61568a97e80811969f6d75544cd3019c6fc07 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Fri, 29 Sep 2023 18:27:27 +0300 Subject: [PATCH] Revert "Unlock mutex in constructor" This reverts commit 3262976401bb550e8d77e8d2346b39f682219248. --- src/Lib/Threads.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Lib/Threads.cpp b/src/Lib/Threads.cpp index 4bf61aa2d..1da287d30 100644 --- a/src/Lib/Threads.cpp +++ b/src/Lib/Threads.cpp @@ -52,10 +52,7 @@ int Lib::Thread::GetThreadIdUnique() { return tid; } -Lib::Mutex::Mutex() { - m_mutex = new MutexStructInternal(); - UnlockMutex(); -} +Lib::Mutex::Mutex() { m_mutex = new MutexStructInternal(); } Lib::Mutex::~Mutex() { delete m_mutex; }