<divclass="ttc"id="group__coreinit__thread_html_ga2bfc1c71ab2551fa12c1dd26c8c9efce"><divclass="ttname"><ahref="group__coreinit__thread.html#ga2bfc1c71ab2551fa12c1dd26c8c9efce">OSCheckThreadStackUsage</a></div><divclass="ttdeci">int32_t OSCheckThreadStackUsage(OSThread *thread)</div><divclass="ttdoc">Get the maximum amount of stack the thread has used.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gad10a0ac959b7542472ae547a1e38b2b7"><divclass="ttname"><ahref="group__coreinit__thread.html#gad10a0ac959b7542472ae547a1e38b2b7">OSGetDefaultThread</a></div><divclass="ttdeci">OSThread * OSGetDefaultThread(uint32_t coreID)</div><divclass="ttdoc">Returns the default thread for a specific core.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga47c38b62e66b6163f6b080a35830897a"><divclass="ttname"><ahref="group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a">OSThreadAttributes</a></div><divclass="ttdeci">uint8_t OSThreadAttributes</div><divclass="ttdoc">A bitfield of enum OS_THREAD_ATTRIB.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00046">thread.h:46</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga3665f0196d1fc7983ad7a311fa1bfc37"><divclass="ttname"><ahref="group__coreinit__thread.html#ga3665f0196d1fc7983ad7a311fa1bfc37">OSGetCurrentThread</a></div><divclass="ttdeci">OSThread * OSGetCurrentThread()</div><divclass="ttdoc">Return pointer to OSThread object for the current thread.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga9e1c9d9b8de8927fb46276114a2f43ec"><divclass="ttname"><ahref="group__coreinit__thread.html#ga9e1c9d9b8de8927fb46276114a2f43ec">OSGetThreadPriority</a></div><divclass="ttdeci">int32_t OSGetThreadPriority(OSThread *thread)</div><divclass="ttdoc">Get a thread's base priority.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga4dc00e8b9758c58fbdbb73350637f805"><divclass="ttname"><ahref="group__coreinit__thread.html#ga4dc00e8b9758c58fbdbb73350637f805">OSCancelThread</a></div><divclass="ttdeci">void OSCancelThread(OSThread *thread)</div><divclass="ttdoc">Cancels a thread.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga2b4866b3e51f4690fd197462d2cdebe7"><divclass="ttname"><ahref="group__coreinit__thread.html#ga2b4866b3e51f4690fd197462d2cdebe7">OSThreadRequest</a></div><divclass="ttdeci">uint32_t OSThreadRequest</div><divclass="ttdoc">A value from enum OS_THREAD_REQUEST.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00043">thread.h:43</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga2051f6f880e722ee1c16d7a9b33fc285ad2b8ca7ea948310fdce859f2a7fd265b"><divclass="ttname"><ahref="group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285ad2b8ca7ea948310fdce859f2a7fd265b">OS_THREAD_STATE_RUNNING</a></div><divclass="ttdoc">Thread is running.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00060">thread.h:60</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaec240f68873bb19c753cfdd346264c17"><divclass="ttname"><ahref="group__coreinit__thread.html#gaec240f68873bb19c753cfdd346264c17">OSSleepTicks</a></div><divclass="ttdeci">void OSSleepTicks(OSTime ticks)</div><divclass="ttdoc">Sleep the current thread for a period of time.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga0074df288baf29c18a7c823c258ba353"><divclass="ttname"><ahref="group__coreinit__thread.html#ga0074df288baf29c18a7c823c258ba353">OSIsThreadSuspended</a></div><divclass="ttdeci">BOOL OSIsThreadSuspended(OSThread *thread)</div><divclass="ttdoc">Returns TRUE if a thread is suspended.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga93f63e1c4e8826006db8878c9a6d0519a643750f290d1a1327e4d6f83a385a923"><divclass="ttname"><ahref="group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a643750f290d1a1327e4d6f83a385a923">OS_THREAD_ATTRIB_DETACHED</a></div><divclass="ttdoc">Start the thread detached.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00091">thread.h:91</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaabc089f75f232061a8ba1c2f4d3a9169"><divclass="ttname"><ahref="group__coreinit__thread.html#gaabc089f75f232061a8ba1c2f4d3a9169">OSYieldThread</a></div><divclass="ttdeci">void OSYieldThread()</div><divclass="ttdoc">Yield execution to waiting threads with same priority.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga308e195cdc22b0290ea5b84774bf481e"><divclass="ttname"><ahref="group__coreinit__thread.html#ga308e195cdc22b0290ea5b84774bf481e">OSGetThreadName</a></div><divclass="ttdeci">const char * OSGetThreadName(OSThread *thread)</div><divclass="ttdoc">Get a thread's name.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gabcdf5e618af28ab7d0eb1dcc9dfc9d36"><divclass="ttname"><ahref="group__coreinit__thread.html#gabcdf5e618af28ab7d0eb1dcc9dfc9d36">OSSetThreadRunQuantum</a></div><divclass="ttdeci">BOOL OSSetThreadRunQuantum(OSThread *thread, uint32_t quantum)</div><divclass="ttdoc">Set a thread's run quantum.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga97d4800cbe08b3e3cd68906a197bf587"><divclass="ttname"><ahref="group__coreinit__thread.html#ga97d4800cbe08b3e3cd68906a197bf587">OSSuspendThread</a></div><divclass="ttdeci">uint32_t OSSuspendThread(OSThread *thread)</div><divclass="ttdoc">Suspend a thread.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga93f63e1c4e8826006db8878c9a6d0519abb854560be1fd9b10763999f08b3591b"><divclass="ttname"><ahref="group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519abb854560be1fd9b10763999f08b3591b">OS_THREAD_ATTRIB_AFFINITY_ANY</a></div><divclass="ttdoc">Allow the thread to run any CPU.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00088">thread.h:88</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga1c33fd51f40dec4bfff9d98992c7e2cc"><divclass="ttname"><ahref="group__coreinit__thread.html#ga1c33fd51f40dec4bfff9d98992c7e2cc">OSThreadState</a></div><divclass="ttdeci">uint8_t OSThreadState</div><divclass="ttdoc">A value from enum OS_THREAD_STATE.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00040">thread.h:40</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga5ab3e3f830d155273978285c2ee0670f"><divclass="ttname"><ahref="group__coreinit__thread.html#ga5ab3e3f830d155273978285c2ee0670f">OSSetThreadCancelState</a></div><divclass="ttdeci">BOOL OSSetThreadCancelState(BOOL state)</div><divclass="ttdoc">Set a thread's cancellation state.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaf949db9990798fe799eef6f10400febc"><divclass="ttname"><ahref="group__coreinit__thread.html#gaf949db9990798fe799eef6f10400febc">OSSetThreadPriority</a></div><divclass="ttdeci">BOOL OSSetThreadPriority(OSThread *thread, int32_t priority)</div><divclass="ttdoc">Set a thread's priority.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga8e47bab6ad06370cbb0990d979e1729b"><divclass="ttname"><ahref="group__coreinit__thread.html#ga8e47bab6ad06370cbb0990d979e1729b">OSResumeThread</a></div><divclass="ttdeci">int32_t OSResumeThread(OSThread *thread)</div><divclass="ttdoc">Resumes a thread.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga42e2be4ac798739e6b6e947099547921"><divclass="ttname"><ahref="group__coreinit__thread.html#ga42e2be4ac798739e6b6e947099547921">OSGetStackPointer</a></div><divclass="ttdeci">uint32_t OSGetStackPointer()</div><divclass="ttdoc">Return current stack pointer, value of r1 register.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga94cfe1592be09c48ba2ee9718297ee3d"><divclass="ttname"><ahref="group__coreinit__thread.html#ga94cfe1592be09c48ba2ee9718297ee3d">OSGetThreadSpecific</a></div><divclass="ttdeci">void * OSGetThreadSpecific(uint32_t id)</div><divclass="ttdoc">Get a thread's specific value set by OSSetThreadSpecific.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga541eec9e102156579ad86cc440d741b1"><divclass="ttname"><ahref="group__coreinit__thread.html#ga541eec9e102156579ad86cc440d741b1">OSGetActiveThreadLink</a></div><divclass="ttdeci">void OSGetActiveThreadLink(OSThread *thread, OSThreadLink *link)</div><divclass="ttdoc">Get the next and previous thread in the thread's active queue.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga93f63e1c4e8826006db8878c9a6d0519a1434f284dfb835aa2d0704cebf81345c"><divclass="ttname"><ahref="group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a1434f284dfb835aa2d0704cebf81345c">OS_THREAD_ATTRIB_AFFINITY_CPU2</a></div><divclass="ttdoc">Allow the thread to run on CPU2.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00085">thread.h:85</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga0b90395dabd5e3077b274f8dd65fe5bb"><divclass="ttname"><ahref="group__coreinit__thread.html#ga0b90395dabd5e3077b274f8dd65fe5bb">OSCheckActiveThreads</a></div><divclass="ttdeci">int32_t OSCheckActiveThreads()</div><divclass="ttdoc">Returns the count of active threads.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga93f63e1c4e8826006db8878c9a6d0519a3ea0c3a38f1342783fd2ddfa6a84a13d"><divclass="ttname"><ahref="group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a3ea0c3a38f1342783fd2ddfa6a84a13d">OS_THREAD_ATTRIB_AFFINITY_CPU0</a></div><divclass="ttdoc">Allow the thread to run on CPU0.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00079">thread.h:79</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga64b826e25d3352b17abf9a1e4243837e"><divclass="ttname"><ahref="group__coreinit__thread.html#ga64b826e25d3352b17abf9a1e4243837e">OSSetThreadAffinity</a></div><divclass="ttdeci">BOOL OSSetThreadAffinity(OSThread *thread, uint32_t affinity)</div><divclass="ttdoc">Set a thread's affinity.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gabadb986bf587ed067719230d0194e432"><divclass="ttname"><ahref="group__coreinit__thread.html#gabadb986bf587ed067719230d0194e432">OSJoinThread</a></div><divclass="ttdeci">BOOL OSJoinThread(OSThread *thread, int *threadResult)</div><divclass="ttdoc">Wait until thread is terminated.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga233d3d678de8dcccceb18424e24950b8"><divclass="ttname"><ahref="group__coreinit__thread.html#ga233d3d678de8dcccceb18424e24950b8">OSWakeupThread</a></div><divclass="ttdeci">void OSWakeupThread(OSThreadQueue *queue)</div><divclass="ttdoc">Wake up all threads in queue.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga6aa2bd70bb3560ca3811aa0215971cf8"><divclass="ttname"><ahref="group__coreinit__thread.html#ga6aa2bd70bb3560ca3811aa0215971cf8">OSContinueThread</a></div><divclass="ttdeci">void OSContinueThread(OSThread *thread)</div><divclass="ttdoc">Clears a thread's suspend counter and resumes it.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga2051f6f880e722ee1c16d7a9b33fc285a1a499958e89f028b8c3d29f869f97517"><divclass="ttname"><ahref="group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285a1a499958e89f028b8c3d29f869f97517">OS_THREAD_STATE_MORIBUND</a></div><divclass="ttdoc">Thread is about to terminate.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00066">thread.h:66</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga2051f6f880e722ee1c16d7a9b33fc285a4318e1cf6017f194840a32dd1be1d57f"><divclass="ttname"><ahref="group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285a4318e1cf6017f194840a32dd1be1d57f">OS_THREAD_STATE_WAITING</a></div><divclass="ttdoc">Thread is waiting, i.e. on a mutex.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00063">thread.h:63</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga62e2afe54836ced17ce04b005b9be728"><divclass="ttname"><ahref="group__coreinit__thread.html#ga62e2afe54836ced17ce04b005b9be728">OSGetThreadAffinity</a></div><divclass="ttdeci">uint32_t OSGetThreadAffinity(OSThread *thread)</div><divclass="ttdoc">Get a thread's affinity.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga40601ddddabf312483c9a3da0a924fa6"><divclass="ttname"><ahref="group__coreinit__thread.html#ga40601ddddabf312483c9a3da0a924fa6">OSSleepThread</a></div><divclass="ttdeci">void OSSleepThread(OSThreadQueue *queue)</div><divclass="ttdoc">Sleep the current thread and add it to a thread queue.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaa3241ca6d126d3b4dc4be94d9836f573"><divclass="ttname"><ahref="group__coreinit__thread.html#gaa3241ca6d126d3b4dc4be94d9836f573">OSRunThread</a></div><divclass="ttdeci">BOOL OSRunThread(OSThread *thread, OSThreadEntryPointFn entry, int argc, const char **argv)</div><divclass="ttdoc">Run a function on an already created thread.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaa5ec19889db9ab9d679ed56b49c8dd44"><divclass="ttname"><ahref="group__coreinit__thread.html#gaa5ec19889db9ab9d679ed56b49c8dd44">OSSetThreadSpecific</a></div><divclass="ttdeci">void OSSetThreadSpecific(uint32_t id, void *value)</div><divclass="ttdoc">Set a thread specific value.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga3d5f9fe631c3b30a30ee84a2d32a617c"><divclass="ttname"><ahref="group__coreinit__thread.html#ga3d5f9fe631c3b30a30ee84a2d32a617c">OSTestThreadCancel</a></div><divclass="ttdeci">void OSTestThreadCancel()</div><divclass="ttdoc">Check to see if the current thread should be cancelled or suspended.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga481f2365b62f2ed1b7cda3d0bec91ff2"><divclass="ttname"><ahref="group__coreinit__thread.html#ga481f2365b62f2ed1b7cda3d0bec91ff2">OSExitThread</a></div><divclass="ttdeci">void OSExitThread(int32_t result)</div><divclass="ttdoc">Exit the current thread with a exit code.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gab5f71458522cd623a26fda4bc7a08706"><divclass="ttname"><ahref="group__coreinit__thread.html#gab5f71458522cd623a26fda4bc7a08706">OSSetThreadDeallocator</a></div><divclass="ttdeci">OSThreadDeallocatorFn OSSetThreadDeallocator(OSThread *thread, OSThreadDeallocatorFn deallocator)</div><divclass="ttdoc">Set the callback to be called just after a thread is terminated.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaddb66bd8a4fcdd50eec34e0eaabaa4ea"><divclass="ttname"><ahref="group__coreinit__thread.html#gaddb66bd8a4fcdd50eec34e0eaabaa4ea">OSSetThreadCleanupCallback</a></div><divclass="ttdeci">OSThreadCleanupCallbackFn OSSetThreadCleanupCallback(OSThread *thread, OSThreadCleanupCallbackFn callback)</div><divclass="ttdoc">Set the callback to be called just before a thread is terminated.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga93f63e1c4e8826006db8878c9a6d0519a6b6ea70f704c863a0a37b03ffbffaa85"><divclass="ttname"><ahref="group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a6b6ea70f704c863a0a37b03ffbffaa85">OS_THREAD_ATTRIB_STACK_USAGE</a></div><divclass="ttdoc">Enables tracking of stack usage.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00094">thread.h:94</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_ga0bec4859c6c3575439660463ab58fc14"><divclass="ttname"><ahref="group__coreinit__thread.html#ga0bec4859c6c3575439660463ab58fc14">OSIsThreadTerminated</a></div><divclass="ttdeci">BOOL OSIsThreadTerminated(OSThread *thread)</div><divclass="ttdoc">Returns TRUE if a thread is terminated.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga2051f6f880e722ee1c16d7a9b33fc285aba95f54efb4f40634409efe14ac7aa1f"><divclass="ttname"><ahref="group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285aba95f54efb4f40634409efe14ac7aa1f">OS_THREAD_STATE_READY</a></div><divclass="ttdoc">Thread is ready to run.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00057">thread.h:57</a></div></div>
<divclass="ttc"id="group__coreinit__thread_html_gaf3ca5305804fa4552529c5912c96ce2b"><divclass="ttname"><ahref="group__coreinit__thread.html#gaf3ca5305804fa4552529c5912c96ce2b">OSClearThreadStackUsage</a></div><divclass="ttdeci">void OSClearThreadStackUsage(OSThread *thread)</div><divclass="ttdoc">Disable tracking of thread stack usage.</div></div>
<divclass="ttc"id="group__coreinit__thread_html_gga93f63e1c4e8826006db8878c9a6d0519adcea8a57b4636bc5a0c3e283ce83e0f7"><divclass="ttname"><ahref="group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519adcea8a57b4636bc5a0c3e283ce83e0f7">OS_THREAD_ATTRIB_AFFINITY_CPU1</a></div><divclass="ttdoc">Allow the thread to run on CPU1.</div><divclass="ttdef"><b>Definition:</b><ahref="thread_8h_source.html#l00082">thread.h:82</a></div></div>