diff options
author | George Hazan <ghazan@miranda.im> | 2020-02-01 16:24:46 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-02-01 16:24:52 +0300 |
commit | 22308a6db6d03337d854810c3245260a19972deb (patch) | |
tree | c921d18eeae3dc6c63bff207d70a25d2297ea4fa /src/mir_core | |
parent | 3b3d1e9822a49da6fe0db90b8597167fcf9f11c0 (diff) |
fix for TryEnterCriticalSection
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/locks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_core/src/locks.cpp b/src/mir_core/src/locks.cpp index 2a53d0051a..38146b2858 100644 --- a/src/mir_core/src/locks.cpp +++ b/src/mir_core/src/locks.cpp @@ -37,7 +37,7 @@ mir_cs::~mir_cs() void mir_cs::Lock() { while (!::TryEnterCriticalSection(&m_cs)) - ::SleepEx(50, TRUE); + ::SleepEx(0, TRUE); } void mir_cs::Unlock() |