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

Method ReadLockW

phxsqlclient/utils/filelock.h:143–145  ·  view source on GitHub ↗

! *\brief ���õȴ��Ķ���.һ����ö��������߱��ź��жϲŷ���. *\param iOffset int ,����ƫ����. *\param iLen int, �����ֽ���. *\param iWhence int ,SEEK_XXX,������ʼλ��. *\retval true:�ɹ�,false:ʧ��. *\note return false when interupt by singal. */

Source from the content-addressed store, hash-verified

141 *\note return false when interupt by singal.
142 */
143 inline bool ReadLockW(int iOffset, int iLen = 1, int iWhence = SEEK_SET) {
144 return Fcntl(F_SETLKW, F_RDLCK, iOffset, iLen, iWhence);
145 }
146
147 /*!
148 *

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected