Lines Matching refs:cnt
226 int cnt; /* 0: unlocked. -1: write lock. 1...: read lock. */ member
319 pLock->cnt = 0; in findLockInfo()
1324 if( id->pLock->cnt>0 ){
1326 id->pLock->cnt++;
1331 }else if( id->locked || id->pLock->cnt==0 ){
1346 id->pLock->cnt = 1;
1361 int cnt = 100; local
1364 while( cnt-->0 && (res = LockFile(id->h, FIRST_LOCKBYTE, 0, 1, 0))==0 ){
1397 int cnt = 5; local
1406 while( cnt-->0 && (res = PBLockRangeSync(¶ms))!=noErr ){
1442 if( id->pLock->cnt==0 || (id->pLock->cnt==1 && id->locked==1) ){
1457 id->pLock->cnt = -1;
1471 int cnt = 100; local
1472 while( cnt-->0 && (res = LockFile(id->h, FIRST_LOCKBYTE, 0, 1, 0))==0 ){
1505 int cnt = 5; local
1512 while( cnt-->0 && (res = PBLockRangeSync(¶ms))!=noErr ){
1553 assert( id->pLock->cnt!=0 );
1554 if( id->pLock->cnt>1 ){
1555 id->pLock->cnt--;
1568 id->pLock->cnt = 0;