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

Method ReadLockTimeOut

phxsqlclient/utils/filelock.cpp:184–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184bool FileLock::ReadLockTimeOut(uint64_t iOffset, int sec, uint64_t iLen, int iWhence) {
185 return FcntlTimeOut(F_SETLKW, F_RDLCK, iOffset, iLen, iWhence, sec);
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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected