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

Method WriteLockW

phxsqlclient/utils/filelock.cpp:180–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180bool FileLock::WriteLockW(uint64_t iOffset, uint64_t iLen, int iWhence) {
181 return Fcntl(F_SETLKW, F_WRLCK, iOffset, iLen, iWhence);
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);

Callers 4

RefillMethod · 0.45
HasTokenMethod · 0.45
ApplyMethod · 0.45
SetConfigMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected