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

Method WriteLock

phxsqlclient/utils/filelock.cpp:172–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172bool FileLock::WriteLock(uint64_t iOffset, uint64_t iLen, int iWhence) {
173 return Fcntl(F_SETLK, F_WRLCK, iOffset, iLen, iWhence);
174}
175
176bool FileLock::ReadLockW(uint64_t iOffset, uint64_t iLen, int iWhence) {
177 return Fcntl(F_SETLKW, F_RDLCK, iOffset, iLen, iWhence);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected