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

Method try_lock

Core/InterProcessLock.cpp:53–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53bool FileLock::try_lock(LockType lockType, bool *tryAgain) {
54 return doLock(lockType, false, tryAgain);
55}
56
57bool FileLock::doLock(LockType lockType, bool wait, bool *tryAgain) {
58 if (!isFileLockValid()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected