Searched refs:lockIdx (Results 1 – 1 of 1) sorted by relevance
68478 static const char *walLockName(int lockIdx){ argument68479 if( lockIdx==WAL_WRITE_LOCK ){68481 }else if( lockIdx==WAL_CKPT_LOCK ){68483 }else if( lockIdx==WAL_RECOVER_LOCK ){68488 lockIdx-WAL_READ_LOCK(0));68502 static int walLockShared(Wal *pWal, int lockIdx){ argument68505 rc = sqlite3OsShmLock(pWal->pDbFd, lockIdx, 1,68508 walLockName(lockIdx), rc ? "failed" : "ok"));68511 if( rc==SQLITE_OK ) pWal->lockMask |= (1 << lockIdx);68515 static void walUnlockShared(Wal *pWal, int lockIdx){ argument[all …]