Lines Matching refs:thread

229 void    OSi_CheckStack(const char *file, int line, const OSThread *thread);
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);
407 void OS_SleepThreadDirect(OSThread *thread, OSThreadQueue *queue);
430 void OS_WakeupThreadDirect(OSThread *thread);
519 static inline u32 OS_GetThreadId(const OSThread *thread) in OS_GetThreadId() argument
521 SDK_ASSERTMSG(thread, "null thread pointer."); in OS_GetThreadId()
522 return thread->id; in OS_GetThreadId()
534 static inline OSThreadState OS_GetThreadState(const OSThread *thread) in OS_GetThreadState() argument
536 SDK_ASSERTMSG(thread, "null thread pointer."); in OS_GetThreadState()
537 return thread->state; in OS_GetThreadState()
549 static inline OSContext *OS_GetThreadContext(const OSThread *thread) in OS_GetThreadContext() argument
551 SDK_ASSERTMSG(thread, "null thread pointer."); in OS_GetThreadContext()
552 return (OSContext *)&thread->context; in OS_GetThreadContext()
564 static inline BOOL OS_IsThreadRunnable(const OSThread *thread) in OS_IsThreadRunnable() argument
566 return thread->state == OS_THREAD_STATE_READY; in OS_IsThreadRunnable()
610 static inline void OS_SetCurrentThread(OSThread *thread) in OS_SetCurrentThread() argument
612 OS_GetThreadInfo()->current = 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 ); argument
658 #define OS_CheckStack( thread ) ((void)0) argument
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() argument
886 SDK_ASSERT(thread && 0 <= index && index < OS_THREAD_SPECIFIC_MAX); in OSi_SetSpecificData()
887 thread->specific[index] = data; in OSi_SetSpecificData()
900 static inline void *OSi_GetSpecificData(const OSThread *thread, int index) in OSi_GetSpecificData() argument
902 SDK_ASSERT(thread && 0 <= index && index < OS_THREAD_SPECIFIC_MAX); in OSi_GetSpecificData()
903 return thread->specific[index]; in OSi_GetSpecificData()
936 static inline OSThread *OS_GetNextThread(const OSThread *thread) in OS_GetNextThread() argument
938 SDK_ASSERT(thread); in OS_GetNextThread()
939 return thread->next; in OS_GetNextThread()