Lines Matching refs:currentThread

59     OSThread *currentThread = OS_GetCurrentThread();  in OS_LockMutex()  local
69 currentThread->mutex = mutex; in OS_LockMutex()
71 currentThread->mutex = NULL; in OS_LockMutex()
143 OSThread *currentThread = OS_GetCurrentThread(); in OS_TryLockMutex() local
151 mutex->thread = currentThread; in OS_TryLockMutex()
154 OSi_EnqueueTail(currentThread, mutex); in OS_TryLockMutex()
158 else if (mutex->thread == currentThread) in OS_TryLockMutex()
188 OSThread *currentThread = OS_GetCurrentThread(); in OS_LockMutexR() local
198 currentThread->mutex = mutex; in OS_LockMutexR()
200 currentThread->mutex = NULL; in OS_LockMutexR()
218 OSThread *currentThread = OS_GetCurrentThread(); in OS_LockMutexW() local
228 currentThread->mutex = mutex; in OS_LockMutexW()
230 currentThread->mutex = NULL; in OS_LockMutexW()
249 OSThread * currentThread = OS_GetCurrentThread(); in OS_TryLockMutexR() local
254 mutex->thread = currentThread; in OS_TryLockMutexR()
257 OSi_EnqueueTail(currentThread, mutex); in OS_TryLockMutexR()
288 OSThread * currentThread = OS_GetCurrentThread(); in OS_TryLockMutexW() local
293 mutex->thread = currentThread; in OS_TryLockMutexW()
296 OSi_EnqueueTail(currentThread, mutex); in OS_TryLockMutexW()
301 if ( mutex->thread == currentThread ) in OS_TryLockMutexW()
334 OSThread *currentThread = OS_GetCurrentThread(); in OSi_UnlockMutexCore() local
352 if ( mutex->thread == currentThread ) in OSi_UnlockMutexCore()
381 OSi_DequeueItem(currentThread, mutex); in OSi_UnlockMutexCore()
445 OSThread *currentThread = OS_GetCurrentThread(); in OS_LockMutexFromRToW() local
454 currentThread->mutex = mutex; in OS_LockMutexFromRToW()
456 currentThread->mutex = NULL; in OS_LockMutexFromRToW()
500 OSThread *currentThread = OS_GetCurrentThread(); in OS_LockMutexFromWToR() local
509 currentThread->mutex = mutex; in OS_LockMutexFromWToR()
511 currentThread->mutex = NULL; in OS_LockMutexFromWToR()