Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/MMKV
/ try_lock
Method
try_lock
Core/ThreadLock.cpp:60–63 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
58
}
59
60
bool ThreadLock::try_lock() {
61
auto ret = pthread_mutex_trylock(&m_lock);
62
return (ret == 0);
63
}
64
65
void ThreadLock::initialize() {
66
return;
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected