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

Method FileLock

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

Source from the content-addressed store, hash-verified

64# ifndef MMKV_WIN32
65# ifndef MMKV_ANDROID
66 explicit FileLock(MMKVFileHandle_t fd) : m_fd(fd), m_sharedLockCount(0), m_exclusiveLockCount(0) {}
67# else
68 // locking with pos & len only works in fcntl lock type
69 explicit FileLock(MMKVFileHandle_t fd, bool useFcntlLock = false, bool isAshmem = false, int64_t lockPos = 0, int64_t lockLen = 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected