Searched refs:currentThread (Results 1 – 2 of 2) sorted by relevance
59 OSThread *currentThread = OS_GetCurrentThread(); in OS_LockMutex() local69 currentThread->mutex = mutex; in OS_LockMutex()71 currentThread->mutex = NULL; in OS_LockMutex()143 OSThread *currentThread = OS_GetCurrentThread(); in OS_TryLockMutex() local151 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() local198 currentThread->mutex = mutex; in OS_LockMutexR()200 currentThread->mutex = NULL; in OS_LockMutexR()[all …]
450 OSThread *currentThread, *nextThread; in OSi_RescheduleThread() local451 currentThread = OSi_GetCurrentThread(); in OSi_RescheduleThread()454 if (currentThread == nextThread || !nextThread) // maybe nextThread != NULL in OSi_RescheduleThread()459 if (currentThread->state != OS_THREAD_STATE_TERMINATED in OSi_RescheduleThread()460 && OS_SaveContext(¤tThread->context)) in OSi_RescheduleThread()468 ((OSSwitchThreadCallback)OSi_SystemCallbackInSwitchThread) (currentThread, in OSi_RescheduleThread()475 ((OSSwitchThreadCallback)info->switchCallback) (currentThread, nextThread); in OSi_RescheduleThread()763 OSThread *currentThread = OSi_GetCurrentThread(); in OSi_ExitThread() local766 SDK_ASSERT(currentThread); in OSi_ExitThread()769 destructor = currentThread->destructor; in OSi_ExitThread()[all …]