Lines Matching refs:OSThread

54 typedef struct _OSThread OSThread;  typedef
69 OSThread *head;
70 OSThread *tail;
75 OSThread *prev;
76 OSThread *next;
121 OSThread *next;
173 OSThread *current;
174 OSThread *list;
177 OSThread *entry[OS_THREAD_MAX_NUM];
205 #define OS_THREAD_OFFSET_ID (OS_THREAD_OFFSET_NEXT+sizeof(OSThread*))
218 typedef void (*OSSwitchThreadCallback) (OSThread *from, OSThread *to);
229 void OSi_CheckStack(const char *file, int line, const OSThread *thread);
232 OSThread *OSi_GetIdleThread(void);
270 void OS_CreateThread(OSThread *thread,
295 void OS_DestroyThread(OSThread *thread);
309 void OS_KillThread(OSThread *thread, void *arg);
310 void OS_KillThreadWithPriority(OSThread *thread, void *arg, u32 prio);
323 void OS_JoinThread(OSThread *thread);
335 BOOL OS_IsThreadTerminated(const OSThread *thread);
346 OSThreadState OS_GetThreadStatus(const OSThread *thread);
357 OSThread *OS_SelectThread(void);
407 void OS_SleepThreadDirect(OSThread *thread, OSThreadQueue *queue);
430 void OS_WakeupThreadDirect(OSThread *thread);
501 static inline OSThread *OS_GetThread(u32 id) in OS_GetThread()
507 extern OSThread *OS_GetThread(u32 id);
519 static inline u32 OS_GetThreadId(const OSThread *thread) in OS_GetThreadId()
534 static inline OSThreadState OS_GetThreadState(const OSThread *thread) in OS_GetThreadState()
549 static inline OSContext *OS_GetThreadContext(const OSThread *thread) in OS_GetThreadContext()
564 static inline BOOL OS_IsThreadRunnable(const OSThread *thread) in OS_IsThreadRunnable()
596 static inline OSThread *OS_GetCurrentThread(void) in OS_GetCurrentThread()
610 static inline void OS_SetCurrentThread(OSThread *thread) in OS_SetCurrentThread()
626 void OS_SetThreadStackWarningOffset(OSThread *thread, u32 offset);
642 OSStackStatus OS_GetStackStatus(const OSThread *thread);
656 #define OS_CheckStack( thread ) OSi_CheckStack( __FILE__, __LINE__, (const OSThread*)thread );
671 BOOL OS_SetThreadPriority(OSThread *thread, u32 prio);
683 u32 OS_GetThreadPriority(const OSThread *thread);
721 void OS_DumpThreadCallTrace(const OSThread *thread);
761 void OS_SetThreadDestructor(OSThread *thread, OSThreadDestructor dtor);
772 OSThreadDestructor OS_GetThreadDestructor(const OSThread *thread);
784 void OS_SetThreadParameter(OSThread *thread, void *parameter);
795 void *OS_GetThreadParameter(const OSThread *thread);
818 BOOL OS_IsThreadInList(const OSThread *thread);
857 void OSi_SetSystemErrno(OSThread *thread, int errno);
868 int OSi_GetSystemErrno(const OSThread *thread);
884 static inline void OSi_SetSpecificData(OSThread *thread, int index, void *data) in OSi_SetSpecificData()
900 static inline void *OSi_GetSpecificData(const OSThread *thread, int index) in OSi_GetSpecificData()
921 static inline OSThread *OS_GetThreadList(void) in OS_GetThreadList()
936 static inline OSThread *OS_GetNextThread(const OSThread *thread) in OS_GetNextThread()