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

Method lock

Core/InterProcessLock.cpp:49–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49bool FileLock::lock(LockType lockType) {
50 return doLock(lockType, true);
51}
52
53bool FileLock::try_lock(LockType lockType, bool *tryAgain) {
54 return doLock(lockType, false, tryAgain);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected