Home
last modified time | relevance | path

Searched refs:lockIdx (Results 1 – 1 of 1) sorted by relevance

/sqlite-3.40.0/src/
H A Dwal.c908 static const char *walLockName(int lockIdx){ in walLockName() argument
909 if( lockIdx==WAL_WRITE_LOCK ){ in walLockName()
911 }else if( lockIdx==WAL_CKPT_LOCK ){ in walLockName()
913 }else if( lockIdx==WAL_RECOVER_LOCK ){ in walLockName()
918 lockIdx-WAL_READ_LOCK(0)); in walLockName()
932 static int walLockShared(Wal *pWal, int lockIdx){ in walLockShared() argument
935 rc = sqlite3OsShmLock(pWal->pDbFd, lockIdx, 1, in walLockShared()
944 (void)sqlite3OsShmLock(pWal->pDbFd, lockIdx, 1, in walUnlockShared()
951 rc = sqlite3OsShmLock(pWal->pDbFd, lockIdx, n, in walLockExclusive()
963 walLockName(lockIdx), n)); in walUnlockExclusive()
[all …]