! *\brief ָ�� ʱ��ȴ���д��. *\param iOffset int , ����ƫ����. *\param sec int , �ȴ���ʱ����. *\param iLen int, �����ֽ���. *\param iWhence int , ������ʼλ��. *\retval �ɹ�����true��ʧ�ܷ���false. *\note return false when interupt by singal. */
| 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()���ļ��汾. |
nothing calls this directly
no outgoing calls
no test coverage detected