This commit is contained in:
guoling
2020-01-21 22:04:42 +08:00
parent 5957ed57e3
commit 177a2a3c68
17 changed files with 103 additions and 148 deletions
-5
View File
@@ -45,11 +45,6 @@ void ThreadLock::lock() {
EnterCriticalSection(&m_lock);
}
bool ThreadLock::try_lock() {
auto ret = TryEnterCriticalSection(&m_lock);
return ret != 0;
}
void ThreadLock::unlock() {
LeaveCriticalSection(&m_lock);
}