MCPcopy Create free account
hub / github.com/Tencent/phxsql / ReadLock

Method ReadLock

phxsqlclient/utils/filelock.cpp:168–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166}
167
168bool FileLock::ReadLock(uint64_t iOffset, uint64_t iLen, int iWhence) {
169 return Fcntl(F_SETLK, F_RDLCK, iOffset, iLen, iWhence);
170}
171
172bool FileLock::WriteLock(uint64_t iOffset, uint64_t iLen, int iWhence) {
173 return Fcntl(F_SETLK, F_WRLCK, iOffset, iLen, iWhence);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected