mirror of
https://github.com/Tencent/MMKV.git
synced 2026-10-17 04:30:56 +08:00
tidy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user