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

Method WriteLockTimeOut

phxsqlclient/utils/filelock.h:197–199  ·  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

195 *\note return false when interupt by singal.
196 */
197 inline bool WriteLockTimeOut(int iOffset, int sec, int iLen = 1, int iWhence = SEEK_SET) {
198 return FcntlTimeOut(F_SETLKW, F_WRLCK, iOffset, iLen, iWhence, sec);
199 }
200
201 /*!
202 *\brief WriteLockTimeOut()���ļ��汾.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected