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

Method ReadLockTimeOut

phxsqlclient/utils/filelock.h:179–181  ·  view source on GitHub ↗

! *\brief ָ���ȴ�ʱ��Ķ���. *\param iOffset int ,����ƫ����. *\param sec int ,�ȴ���ʱ����. *\param iLen int, �����ֽ���. *\param iWhence int , ������ʼλ��. *\retval �ɹ�����true��ʧ�ܷ���false. *\note return false when interupt by singal. */

Source from the content-addressed store, hash-verified

177 *\note return false when interupt by singal.
178 */
179 inline bool ReadLockTimeOut(int iOffset, int sec, int iLen = 1, int iWhence = SEEK_SET) {
180 return FcntlTimeOut(F_SETLKW, F_RDLCK, iOffset, iLen, iWhence, sec);
181 }
182
183 /*!
184 *\brief ReadLockTimeOut()���ļ��汾.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected