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

Method WriteLock

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

123 *\note return false when interupt by singal.
124 */
125 inline bool WriteLock(int iOffset, int iLen = 1, int iWhence = SEEK_SET) {
126 return Fcntl(F_SETLK, F_WRLCK, iOffset, iLen, iWhence);
127 }
128
129 /*!
130 *\brief WriteLock���ļ��汾.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected