Home
last modified time | relevance | path

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

/TwlSDK-5.3.1/build/libraries/os/common/src/
Dos_mutex.c59 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()
[all …]
Dos_thread.c450 OSThread *currentThread, *nextThread; in OSi_RescheduleThread() local
451 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(&currentThread->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() local
766 SDK_ASSERT(currentThread); in OSi_ExitThread()
769 destructor = currentThread->destructor; in OSi_ExitThread()
[all …]