MCPcopy Create free account
hub / github.com/Tencent/MMKV / try_lock

Method try_lock

Core/InterProcessLock.h:108–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106 }
107
108 bool try_lock(bool *tryAgain = nullptr) {
109 if (m_enable) {
110 return m_fileLock->try_lock(m_lockType, tryAgain);
111 }
112 return false;
113 }
114
115 void unlock() {
116 if (m_enable) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected