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

Method lock

Core/InterProcessLock.h:102–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 bool m_enable;
101
102 void lock() {
103 if (m_enable) {
104 m_fileLock->lock(m_lockType);
105 }
106 }
107
108 bool try_lock(bool *tryAgain = nullptr) {
109 if (m_enable) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected