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

Method ReadLock

phxsqlclient/utils/filelock.h:107–109  ·  view source on GitHub ↗

! *\brief �Ӷ���.���û�м����ɹ������߱��ź��жϣ�����������false. *\param iOffset 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

105 *\note return false when interupt by singal.
106 */
107 inline bool ReadLock(int iOffset, int iLen = 1, int iWhence = SEEK_SET) {
108 return Fcntl(F_SETLK, F_RDLCK, iOffset, iLen, iWhence);
109 }
110
111 /*!
112 *\brief ReadLock��ס���ļ��汾.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected