Searched refs:eLock (Results 1 - 15 of 15) sorted by relevance

/external/chromium_org/third_party/sqlite/src/ext/async/
H A Dsqlite3async.c475 ** false, variables AsyncLock.pFile and AsyncLock.eLock are never used.
487 int eLock; member in struct:AsyncLock
498 int eLock; /* Internally visible lock state (sqlite pov) */ member in struct:AsyncFileLock
632 p->lock.eLock = 0;
820 assert(pIter->eAsyncLock>=pIter->eLock);
827 if( eRequired>pLock->eLock ){
830 pLock->eLock = eRequired;
833 else if( eRequired<pLock->eLock && eRequired<=SQLITE_LOCK_SHARED ){
836 pLock->eLock = eRequired;
862 static int asyncLock(sqlite3_file *pFile, int eLock){ argument
897 asyncUnlock(sqlite3_file *pFile, int eLock) argument
1458 int eLock = p->nByte; local
[all...]
/external/chromium_org/third_party/sqlite/src/src/
H A Dtest_journal.c120 int eLock; /* Current lock held on the file */ member in struct:jt_file
299 && (pMain->eLock>=SQLITE_LOCK_RESERVED)
631 static int jtLock(sqlite3_file *pFile, int eLock){ argument
634 rc = sqlite3OsLock(p->pReal, eLock);
635 if( rc==SQLITE_OK && eLock>p->eLock ){
636 p->eLock = eLock;
644 static int jtUnlock(sqlite3_file *pFile, int eLock){ argument
647 rc = sqlite3OsUnlock(p->pReal, eLock);
[all...]
H A Dpager.c360 ** The Pager.eLock variable is almost always set to one of the
369 ** pagerUnlockDb() take a conservative approach - eLock is always updated
371 ** VFS call is successful. This way, the Pager.eLock variable may be set
396 ** database in the ERROR state, Pager.eLock is set to UNKNOWN_LOCK. It
399 ** omits the check for a hot-journal if Pager.eLock is set to UNKNOWN_LOCK
404 ** Pager.eLock may only be set to UNKNOWN_LOCK when the pager is in
465 ** eLock
634 u8 eLock; /* Current lock held on database file */ member in struct:Pager
820 assert( p->tempFile==0 || p->eLock==EXCLUSIVE_LOCK );
849 assert( pPager->changeCountDone==0 || pPager->eLock>
1053 pagerUnlockDb(Pager *pPager, int eLock) argument
1080 pagerLockDb(Pager *pPager, int eLock) argument
[all...]
H A Dtest_devsym.c192 static int devsymLock(sqlite3_file *pFile, int eLock){ argument
194 return sqlite3OsLock(p->pReal, eLock);
200 static int devsymUnlock(sqlite3_file *pFile, int eLock){ argument
202 return sqlite3OsUnlock(p->pReal, eLock);
H A Dtest_vfstrace.c299 static const char *lockName(int eLock){ argument
303 if( eLock<0 || eLock>=sizeof(azLockNames)/sizeof(azLockNames[0]) ){
306 return azLockNames[eLock];
313 static int vfstraceLock(sqlite3_file *pFile, int eLock){ argument
318 lockName(eLock));
319 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
327 static int vfstraceUnlock(sqlite3_file *pFile, int eLock){ argument
332 lockName(eLock));
333 rc = p->pReal->pMethods->xUnlock(p->pReal, eLock);
[all...]
H A DbtreeInt.h313 u8 eLock; /* READ_LOCK or WRITE_LOCK */ member in struct:BtLock
317 /* Candidate values for BtLock.eLock */
H A Dtest6.c498 static int cfLock(sqlite3_file *pFile, int eLock){ argument
499 return sqlite3OsLock(((CrashFile *)pFile)->pRealFile, eLock);
501 static int cfUnlock(sqlite3_file *pFile, int eLock){ argument
502 return sqlite3OsUnlock(((CrashFile *)pFile)->pRealFile, eLock);
H A Dtest_onefile.c332 static int tmpLock(sqlite3_file *pFile, int eLock){ argument
339 static int tmpUnlock(sqlite3_file *pFile, int eLock){ argument
540 static int fsLock(sqlite3_file *pFile, int eLock){ argument
547 static int fsUnlock(sqlite3_file *pFile, int eLock){ argument
H A Dtest_demovfs.c358 static int demoLock(sqlite3_file *pFile, int eLock){ argument
361 static int demoUnlock(sqlite3_file *pFile, int eLock){ argument
H A Dtest_osinst.c348 static int vfslogLock(sqlite3_file *pFile, int eLock){ argument
353 rc = p->pReal->pMethods->xLock(p->pReal, eLock);
355 vfslog_call(p->pVfslog, OS_LOCK, p->iFileId, t, rc, eLock, 0);
362 static int vfslogUnlock(sqlite3_file *pFile, int eLock){ argument
367 rc = p->pReal->pMethods->xUnlock(p->pReal, eLock);
369 vfslog_call(p->pVfslog, OS_UNLOCK, p->iFileId, t, rc, eLock, 0);
H A Dbtree.c171 && (pLock->iTable==iTab || (pLock->eLock==WRITE_LOCK && pLock->iTable==1))
172 && pLock->eLock>=eLockType
217 ** Query to see if Btree handle p may obtain a lock of type eLock
222 static int querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock){ argument
227 assert( eLock==READ_LOCK || eLock==WRITE_LOCK );
229 assert( !(p->db->flags&SQLITE_ReadUncommitted)||eLock==WRITE_LOCK||iTab==1 );
235 assert( eLock==READ_LOCK || (p==pBt->pWriter && p->inTrans==TRANS_WRITE) );
236 assert( eLock==READ_LOCK || pBt->inTransaction==TRANS_WRITE );
252 /* The condition (pIter->eLock!
294 setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock) argument
[all...]
H A Dtest_vfs.c467 static int tvfsLock(sqlite3_file *pFile, int eLock){ argument
469 return sqlite3OsLock(p->pReal, eLock);
475 static int tvfsUnlock(sqlite3_file *pFile, int eLock){ argument
477 return sqlite3OsUnlock(p->pReal, eLock);
/external/chromium_org/third_party/sqlite/amalgamation/
H A Dsqlite3.c37064 u8 eLock; /* Current lock held on database file */ member in struct:Pager
37483 pagerUnlockDb(Pager *pPager, int eLock) argument
37510 pagerLockDb(Pager *pPager, int eLock) argument
46515 u8 eLock; /* READ_LOCK or WRITE_LOCK */ member in struct:BtLock
47341 querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock) argument
47413 setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock) argument
[all...]
/external/sqlite/dist/orig/
H A Dsqlite3.c40890 u8 eLock; /* Current lock held on database file */ member in struct:Pager
41333 pagerUnlockDb(Pager *pPager, int eLock) argument
41360 pagerLockDb(Pager *pPager, int eLock) argument
50911 u8 eLock; /* READ_LOCK or WRITE_LOCK */ member in struct:BtLock
51780 querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock) argument
51852 setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock) argument
[all...]
/external/sqlite/dist/
H A Dsqlite3.c40910 u8 eLock; /* Current lock held on database file */ member in struct:Pager
41353 pagerUnlockDb(Pager *pPager, int eLock) argument
41380 pagerLockDb(Pager *pPager, int eLock) argument
50931 u8 eLock; /* READ_LOCK or WRITE_LOCK */ member in struct:BtLock
51800 querySharedCacheTableLock(Btree *p, Pgno iTab, u8 eLock) argument
51872 setSharedCacheTableLock(Btree *p, Pgno iTable, u8 eLock) argument
[all...]

Completed in 991 milliseconds