Lines Matching refs:tid
70 static int winMutexNotheld2(sqlite3_mutex *p, DWORD tid){ in winMutexNotheld2() argument
71 return p->nRef==0 || p->owner!=tid; in winMutexNotheld2()
75 DWORD tid = GetCurrentThreadId(); in winMutexNotheld() local
76 return winMutexNotheld2(p, tid); in winMutexNotheld()
286 DWORD tid = GetCurrentThreadId(); in winMutexEnter() local
290 assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) ); in winMutexEnter()
298 p->owner = tid; in winMutexEnter()
302 tid, p->id, p, p->trace, p->nRef)); in winMutexEnter()
309 DWORD tid = GetCurrentThreadId(); in winMutexTry() local
313 assert( p->id==SQLITE_MUTEX_RECURSIVE || winMutexNotheld2(p, tid) ); in winMutexTry()
334 p->owner = tid; in winMutexTry()
345 tid, p->id, p, p->trace, p->owner, p->nRef, sqlite3ErrName(rc))); in winMutexTry()
359 DWORD tid = GetCurrentThreadId(); in winMutexLeave() local
364 assert( p->owner==tid ); in winMutexLeave()
374 tid, p->id, p, p->trace, p->nRef)); in winMutexLeave()