diff --git a/include/types.h b/include/types.h index 2bc51d1..01da72c 100644 --- a/include/types.h +++ b/include/types.h @@ -87,7 +87,7 @@ class WinMutex // Like CMutex but works with scoped_lock { public: WinMutex(std::wstring name) : m(CreateMutexW(nullptr, FALSE, name.c_str())) {} - void lock() { if (m) WaitForSingleObject(m, 0); } + void lock() { if (m) WaitForSingleObject(m, INFINITE); } void unlock() { if (m) ReleaseMutex(m); } private: