Lines Matching refs:OSThread
77 OSThread OSi_LauncherThread;
78 OSThread OSi_IdleThread;
84 OSThread **OSi_CurrentThreadPtr;
113 static void OSi_CancelThreadAlarmForSleep(OSThread *thread);
114 static void OSi_InsertThreadToList(OSThread *thread);
115 static void OSi_RemoveThreadFromList(OSThread *thread);
120 static void OSi_ExitThread_ArgSpecified(OSThread *thread, void *arg);
157 static void OSi_InsertLinkToQueue(OSThreadQueue *queue, OSThread *thread) in OSi_InsertLinkToQueue()
159 OSThread *next = queue->head; in OSi_InsertLinkToQueue()
172 OSThread *prev = queue->tail; in OSi_InsertLinkToQueue()
189 OSThread *prev = next->link.prev; in OSi_InsertLinkToQueue()
215 static OSThread *OSi_RemoveLinkFromQueue(OSThreadQueue *queue) in OSi_RemoveLinkFromQueue()
217 OSThread *t = queue->head; in OSi_RemoveLinkFromQueue()
221 OSThread *next = t->link.next; in OSi_RemoveLinkFromQueue()
248 static OSThread *OSi_RemoveSpecifiedLinkFromQueue(OSThreadQueue *queue, OSThread *thread) in OSi_RemoveSpecifiedLinkFromQueue()
250 OSThread *t = queue->head; in OSi_RemoveSpecifiedLinkFromQueue()
251 OSThread *next; in OSi_RemoveSpecifiedLinkFromQueue()
252 OSThread *prev; in OSi_RemoveSpecifiedLinkFromQueue()
372 static void OSi_InsertThreadToList(OSThread *thread) in OSi_InsertThreadToList()
374 OSThread *t = OSi_ThreadInfo.list; in OSi_InsertThreadToList()
375 OSThread *pre = NULL; in OSi_InsertThreadToList()
404 static void OSi_RemoveThreadFromList(OSThread *thread) in OSi_RemoveThreadFromList()
406 OSThread *t = OSi_ThreadInfo.list; in OSi_RemoveThreadFromList()
407 OSThread *pre = NULL; in OSi_RemoveThreadFromList()
450 OSThread *currentThread, *nextThread; in OSi_RescheduleThread()
618 void OS_CreateThread(OSThread *thread, in OS_CreateThread()
737 static void OSi_ExitThread_ArgSpecified(OSThread *thread, void *arg) in OSi_ExitThread_ArgSpecified()
763 OSThread *currentThread = OSi_GetCurrentThread(); in OSi_ExitThread()
786 OSThread *currentThread = OSi_GetCurrentThread(); in OSi_ExitThread_Destroy()
846 OSThread thread; in UTEST_OS_ExitThread()
871 void OS_DestroyThread(OSThread *thread) in OS_DestroyThread()
932 static inline void OSi_KillThreadWithPriority(OSThread *thread, void *arg, u32 prio);
933 static inline void OSi_KillThreadWithPriority(OSThread *thread, void *arg, u32 prio) in OSi_KillThreadWithPriority()
953 void OS_KillThread(OSThread *thread, void *arg) in OS_KillThread()
958 void OS_KillThreadWithPriority(OSThread *thread, void *arg, u32 prio) in OS_KillThreadWithPriority()
983 OSThread thread; in UTEST_OS_KillThread_1()
984 OSThread *t = &thread; in UTEST_OS_KillThread_1()
1031 OSThread thread; in UTEST_OS_KillThread_2()
1067 static void OSi_CancelThreadAlarmForSleep(OSThread *thread) in OSi_CancelThreadAlarmForSleep()
1086 void OS_JoinThread(OSThread *thread) in OS_JoinThread()
1110 BOOL OS_IsThreadTerminated(const OSThread *thread) in OS_IsThreadTerminated()
1125 OSThreadState OS_GetThreadStatus(const OSThread *thread) in OS_GetThreadStatus()
1141 void OS_SleepThreadDirect(OSThread *thread, OSThreadQueue *queue) in OS_SleepThreadDirect()
1179 OSThread *currentThread; in OS_SleepThread()
1238 OSThread *t = OSi_ThreadInfo.list; in OS_WakeupThread()
1257 OSThread *thread = OSi_RemoveLinkFromQueue(queue); in OS_WakeupThread()
1282 void OS_WakeupThreadDirect(OSThread *thread) in OS_WakeupThreadDirect()
1308 OSThread *OS_SelectThread(void) in OS_SelectThread()
1310 OSThread *t = OSi_ThreadInfo.list; in OS_SelectThread()
1349 OSThread *current = OS_GetCurrentThread(); in OS_YieldThread()
1350 OSThread *pre = NULL; in OS_YieldThread()
1351 OSThread *lastThread = NULL; in OS_YieldThread()
1356 OSThread *t = OSi_ThreadInfo.list; in OS_YieldThread()
1357 OSThread *tPre = NULL; in OS_YieldThread()
1427 OSThread *thread = OSi_ThreadInfo.entry[i]; in OS_DumpThreadList()
1435 OSThread *thread = OSi_ThreadInfo.list; in OS_DumpThreadList()
1441 (thread->queue) ? thread->queue->head : (OSThread *)1, in OS_DumpThreadList()
1442 (thread->queue) ? thread->queue->tail : (OSThread *)1, thread->link.prev, in OS_DumpThreadList()
1477 OSThread *thread = OSi_ThreadInfo.list; in OS_GetNumberOfThread()
1502 OSStackStatus OS_GetStackStatus(const OSThread *thread) in OS_GetStackStatus()
1546 void OSi_CheckStack(const char *file, int line, const OSThread *thread) in OSi_CheckStack()
1611 void OS_SetThreadStackWarningOffset(OSThread *thread, u32 offset) in OS_SetThreadStackWarningOffset()
1637 BOOL OS_SetThreadPriority(OSThread *thread, u32 prio) in OS_SetThreadPriority()
1639 OSThread *t = OSi_ThreadInfo.list; in OS_SetThreadPriority()
1640 OSThread *pre = NULL; in OS_SetThreadPriority()
1696 u32 OS_GetThreadPriority(const OSThread *thread) in OS_GetThreadPriority()
1723 OSThread *volatile p_thread = OSi_GetCurrentThread(); in OS_Sleep()
1742 OSThread **pp_thread = (OSThread **)arg; in OSi_SleepAlarmCallback()
1743 OSThread *p_thread = *pp_thread; in OSi_SleepAlarmCallback()
1803 OSThread *OSi_GetIdleThread(void) in OSi_GetIdleThread()
1805 OSThread *t = NULL; in OSi_GetIdleThread()
1871 OSThread *OS_GetThread(u32 id) in OS_GetThread()
1873 OSThread *retval = NULL; in OS_GetThread()
1874 OSThread *t = OSi_ThreadInfo.list; in OS_GetThread()
1903 void OS_SetThreadDestructor(OSThread *thread, OSThreadDestructor dtor) in OS_SetThreadDestructor()
1918 OSThreadDestructor OS_GetThreadDestructor(const OSThread *thread) in OS_GetThreadDestructor()
1934 void OS_SetThreadParameter(OSThread *thread, void *parameter) in OS_SetThreadParameter()
1949 void *OS_GetThreadParameter(const OSThread *thread) in OS_GetThreadParameter()
1967 void OSi_SetSystemErrno(OSThread *thread, int errno) in OSi_SetSystemErrno()
1982 int OSi_GetSystemErrno(const OSThread *thread) in OSi_GetSystemErrno()
1999 OSThread *thread = OSi_GetCurrentThread(); in OS_GetErrno()
2013 BOOL OS_IsThreadInList(const OSThread *thread) in OS_IsThreadInList()
2016 OSThread *t = OSi_ThreadInfo.list; in OS_IsThreadInList()