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

Method WriteLockTimeOut

phxsqlclient/utils/filelock.cpp:188–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool FileLock::WriteLockTimeOut(uint64_t iOffset, int sec, uint64_t iLen, int iWhence) {
189 return FcntlTimeOut(F_SETLKW, F_WRLCK, iOffset, iLen, iWhence, sec);
190}
191
192bool FileLock::Unlock(uint64_t iOffset, uint64_t iLen, int iWhence) {
193 return Fcntl(F_SETLK, F_UNLCK, iOffset, iLen, iWhence);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected