2019-04-22 02:21:17 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2016-01-07 17:06:06 +01:00
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
2020-03-26 06:49:18 +01:00
< meta name = "generator" content = "Doxygen 1.8.17" / >
2018-07-26 12:52:03 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > wut: Thread< / title >
2016-01-07 17:06:06 +01:00
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td id = "projectalign" style = "padding-left: 0.5em;" >
2018-07-26 12:52:03 +02:00
< div id = "projectname" > wut
2020-03-26 06:49:18 +01:00
  < span id = "projectnumber" > 1.0.0-beta9< / span >
2016-01-07 17:06:06 +01:00
< / div >
< div id = "projectbrief" > Wii U Toolchain< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2020-03-26 06:49:18 +01:00
<!-- Generated by Doxygen 1.8.17 -->
2016-01-07 17:06:06 +01:00
< script type = "text/javascript" >
2018-07-26 12:52:03 +02:00
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
2016-01-07 17:06:06 +01:00
var searchBox = new SearchBox("searchBox", "search",false,'Search');
2018-07-26 12:52:03 +02:00
/* @license-end */
2016-01-07 17:06:06 +01:00
< / script >
2018-07-26 12:52:03 +02:00
< script type = "text/javascript" src = "menudata.js" > < / script >
< script type = "text/javascript" src = "menu.js" > < / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */< / script >
< div id = "main-nav" > < / div >
2016-01-07 17:06:06 +01:00
< / div > <!-- top -->
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Data Structures< / a > |
< a href = "#define-members" > Macros< / a > |
< a href = "#typedef-members" > Typedefs< / a > |
< a href = "#enum-members" > Enumerations< / a > |
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
2016-01-07 17:14:21 +01:00
< div class = "title" > Thread< div class = "ingroups" > < a class = "el" href = "group__coreinit.html" > coreinit< / a > < / div > < / div > < / div >
2016-01-07 17:06:06 +01:00
< / div > <!-- header -->
< div class = "contents" >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "nested-classes" > < / a >
Data Structures< / h2 > < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:structOSMutexQueue" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#structOSMutexQueue" > OSMutexQueue< / a > < / td > < / tr >
< tr class = "separator:structOSMutexQueue" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:structOSFastMutexQueue" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#structOSFastMutexQueue" > OSFastMutexQueue< / a > < / td > < / tr >
< tr class = "separator:structOSFastMutexQueue" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-01-07 17:06:06 +01:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "define-members" > < / a >
Macros< / h2 > < / td > < / tr >
< tr class = "memitem:ga557f93deefa5ce76cc300ec1beb0c879" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga557f93deefa5ce76cc300ec1beb0c879" > OS_THREAD_TAG< / a >       0x74487244u< / td > < / tr >
< tr class = "separator:ga557f93deefa5ce76cc300ec1beb0c879" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "typedef-members" > < / a >
Typedefs< / h2 > < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga1a46c02caff79a13ecf041e55a454696" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "group__coreinit__fastmutex.html#structOSFastMutex" > OSFastMutex< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga1a46c02caff79a13ecf041e55a454696" > OSFastMutex< / a > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga1a46c02caff79a13ecf041e55a454696" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga6ab521577a62122534149c14253952cb" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "group__coreinit__thread.html#structOSFastMutexQueue" > OSFastMutexQueue< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga6ab521577a62122534149c14253952cb" > OSFastMutexQueue< / a > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga6ab521577a62122534149c14253952cb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga42b7c5a07043d7f6c8324f51ac1747c8" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "group__coreinit__mutex.html#structOSMutex" > OSMutex< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga42b7c5a07043d7f6c8324f51ac1747c8" > OSMutex< / a > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga42b7c5a07043d7f6c8324f51ac1747c8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga585231e15c29fd8485e2ef645623fdec" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "group__coreinit__thread.html#structOSMutexQueue" > OSMutexQueue< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga585231e15c29fd8485e2ef645623fdec" > OSMutexQueue< / a > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga585231e15c29fd8485e2ef645623fdec" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga21cc46877b04baece01ef544fa06a906" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga21cc46877b04baece01ef544fa06a906" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga1c33fd51f40dec4bfff9d98992c7e2cc" > < td class = "memItemLeft" align = "right" valign = "top" > typedef uint8_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga1c33fd51f40dec4bfff9d98992c7e2cc" > OSThreadState< / a > < / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga1c33fd51f40dec4bfff9d98992c7e2cc" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A value from enum OS_THREAD_STATE. < a href = "group__coreinit__thread.html#ga1c33fd51f40dec4bfff9d98992c7e2cc" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga1c33fd51f40dec4bfff9d98992c7e2cc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga2b4866b3e51f4690fd197462d2cdebe7" > < td class = "memItemLeft" align = "right" valign = "top" > typedef uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga2b4866b3e51f4690fd197462d2cdebe7" > OSThreadRequest< / a > < / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga2b4866b3e51f4690fd197462d2cdebe7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A value from enum OS_THREAD_REQUEST. < a href = "group__coreinit__thread.html#ga2b4866b3e51f4690fd197462d2cdebe7" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga2b4866b3e51f4690fd197462d2cdebe7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga47c38b62e66b6163f6b080a35830897a" > < td class = "memItemLeft" align = "right" valign = "top" > typedef uint8_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a" > OSThreadAttributes< / a > < / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga47c38b62e66b6163f6b080a35830897a" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > A bitfield of enum OS_THREAD_ATTRIB. < a href = "group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga47c38b62e66b6163f6b080a35830897a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gab5cdc96dcec643891f88be54830acae9" > < td class = "memItemLeft" align = "right" valign = "top" > typedef int(*  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9" > OSThreadEntryPointFn< / a > ) (int argc, const char **argv)< / td > < / tr >
< tr class = "separator:gab5cdc96dcec643891f88be54830acae9" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga729a75fba87a2740d7af69aa8978ea5a" > < td class = "memItemLeft" align = "right" valign = "top" > typedef void(*  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a" > OSThreadCleanupCallbackFn< / a > ) (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, void *stack)< / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga729a75fba87a2740d7af69aa8978ea5a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gac8fa3d74d8d161709d327e38eb426422" > < td class = "memItemLeft" align = "right" valign = "top" > typedef void(*  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422" > OSThreadDeallocatorFn< / a > ) (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, void *stack)< / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gac8fa3d74d8d161709d327e38eb426422" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "enum-members" > < / a >
Enumerations< / h2 > < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga2051f6f880e722ee1c16d7a9b33fc285" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga2051f6f880e722ee1c16d7a9b33fc285" > OS_THREAD_STATE< / a > { < br / >
    < a class = "el" href = "group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285a13a1674553ea65a706ae780c20ae84bc" > OS_THREAD_STATE_NONE< / a > = 0,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285aba95f54efb4f40634409efe14ac7aa1f" > OS_THREAD_STATE_READY< / a > = 1 < < 0,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285ad2b8ca7ea948310fdce859f2a7fd265b" > OS_THREAD_STATE_RUNNING< / a > = 1 < < 1,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285a4318e1cf6017f194840a32dd1be1d57f" > OS_THREAD_STATE_WAITING< / a > = 1 < < 2,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga2051f6f880e722ee1c16d7a9b33fc285a1a499958e89f028b8c3d29f869f97517" > OS_THREAD_STATE_MORIBUND< / a > = 1 < < 3
< br / >
}< / td > < / tr >
< tr class = "separator:ga2051f6f880e722ee1c16d7a9b33fc285" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gac1b924b5c296e435eae41f0bf395d02a" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gac1b924b5c296e435eae41f0bf395d02a" > OS_THREAD_REQUEST< / a > { < br / >
    < a class = "el" href = "group__coreinit__thread.html#ggac1b924b5c296e435eae41f0bf395d02aa46b42c24c445d69479b6a163ada1c3c0" > OS_THREAD_REQUEST_NONE< / a > = 0,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#ggac1b924b5c296e435eae41f0bf395d02aa632959c993cef4fd2735051db6797329" > OS_THREAD_REQUEST_SUSPEND< / a > = 1,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#ggac1b924b5c296e435eae41f0bf395d02aab227c9a028b4fb3a9f71afc33995748a" > OS_THREAD_REQUEST_CANCEL< / a > = 2
< br / >
}< / td > < / tr >
< tr class = "separator:gac1b924b5c296e435eae41f0bf395d02a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga93f63e1c4e8826006db8878c9a6d0519" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga93f63e1c4e8826006db8878c9a6d0519" > OS_THREAD_ATTRIB< / a > { < br / >
    < a class = "el" href = "group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a3ea0c3a38f1342783fd2ddfa6a84a13d" > OS_THREAD_ATTRIB_AFFINITY_CPU0< / a > = 1 < < 0,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519adcea8a57b4636bc5a0c3e283ce83e0f7" > OS_THREAD_ATTRIB_AFFINITY_CPU1< / a > = 1 < < 1,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a1434f284dfb835aa2d0704cebf81345c" > OS_THREAD_ATTRIB_AFFINITY_CPU2< / a > = 1 < < 2,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519abb854560be1fd9b10763999f08b3591b" > OS_THREAD_ATTRIB_AFFINITY_ANY< / a > = ((1 < < 0) | (1 < < 1) | (1 < < 2)),
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a643750f290d1a1327e4d6f83a385a923" > OS_THREAD_ATTRIB_DETACHED< / a > = 1 < < 3,
< br / >
    < a class = "el" href = "group__coreinit__thread.html#gga93f63e1c4e8826006db8878c9a6d0519a6b6ea70f704c863a0a37b03ffbffaa85" > OS_THREAD_ATTRIB_STACK_USAGE< / a > = 1 < < 5
< br / >
}< / td > < / tr >
< tr class = "separator:ga93f63e1c4e8826006db8878c9a6d0519" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2016-01-07 17:06:06 +01:00
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga8a726fc00d3ec7659f577eda3b5295b2" > < td class = "memItemLeft" align = "right" valign = "top" > struct  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga8a726fc00d3ec7659f577eda3b5295b2" > WUT_ALIGNAS< / a > (8) < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > < / td > < / tr >
< tr class = "separator:ga8a726fc00d3ec7659f577eda3b5295b2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga4dc00e8b9758c58fbdbb73350637f805" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga4dc00e8b9758c58fbdbb73350637f805" > OSCancelThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga4dc00e8b9758c58fbdbb73350637f805" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Cancels a thread. < a href = "group__coreinit__thread.html#ga4dc00e8b9758c58fbdbb73350637f805" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga4dc00e8b9758c58fbdbb73350637f805" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga0b90395dabd5e3077b274f8dd65fe5bb" > < td class = "memItemLeft" align = "right" valign = "top" > int32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga0b90395dabd5e3077b274f8dd65fe5bb" > OSCheckActiveThreads< / a > ()< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga0b90395dabd5e3077b274f8dd65fe5bb" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the count of active threads. < a href = "group__coreinit__thread.html#ga0b90395dabd5e3077b274f8dd65fe5bb" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga0b90395dabd5e3077b274f8dd65fe5bb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga2bfc1c71ab2551fa12c1dd26c8c9efce" > < td class = "memItemLeft" align = "right" valign = "top" > int32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga2bfc1c71ab2551fa12c1dd26c8c9efce" > OSCheckThreadStackUsage< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga2bfc1c71ab2551fa12c1dd26c8c9efce" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get the maximum amount of stack the thread has used. < a href = "group__coreinit__thread.html#ga2bfc1c71ab2551fa12c1dd26c8c9efce" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga2bfc1c71ab2551fa12c1dd26c8c9efce" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gaf3ca5305804fa4552529c5912c96ce2b" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaf3ca5305804fa4552529c5912c96ce2b" > OSClearThreadStackUsage< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaf3ca5305804fa4552529c5912c96ce2b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Disable tracking of thread stack usage. < a href = "group__coreinit__thread.html#gaf3ca5305804fa4552529c5912c96ce2b" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaf3ca5305804fa4552529c5912c96ce2b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga6aa2bd70bb3560ca3811aa0215971cf8" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga6aa2bd70bb3560ca3811aa0215971cf8" > OSContinueThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga6aa2bd70bb3560ca3811aa0215971cf8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Clears a thread's suspend counter and resumes it. < a href = "group__coreinit__thread.html#ga6aa2bd70bb3560ca3811aa0215971cf8" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga6aa2bd70bb3560ca3811aa0215971cf8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga558f8aecea78aa6a81817c1d1fcbe8b1" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga558f8aecea78aa6a81817c1d1fcbe8b1" > OSCreateThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, < a class = "el" href = "group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9" > OSThreadEntryPointFn< / a > entry, int32_t argc, char *argv, void *stack, uint32_t stackSize, int32_t priority, < a class = "el" href = "group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a" > OSThreadAttributes< / a > attributes)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga558f8aecea78aa6a81817c1d1fcbe8b1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a new thread. < a href = "group__coreinit__thread.html#ga558f8aecea78aa6a81817c1d1fcbe8b1" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga558f8aecea78aa6a81817c1d1fcbe8b1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga5c8cbb581c038073ea97105cbc389e73" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga5c8cbb581c038073ea97105cbc389e73" > OSDetachThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga5c8cbb581c038073ea97105cbc389e73" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Detach thread. < a href = "group__coreinit__thread.html#ga5c8cbb581c038073ea97105cbc389e73" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga5c8cbb581c038073ea97105cbc389e73" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga481f2365b62f2ed1b7cda3d0bec91ff2" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga481f2365b62f2ed1b7cda3d0bec91ff2" > OSExitThread< / a > (int32_t result)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga481f2365b62f2ed1b7cda3d0bec91ff2" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Exit the current thread with a exit code. < a href = "group__coreinit__thread.html#ga481f2365b62f2ed1b7cda3d0bec91ff2" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga481f2365b62f2ed1b7cda3d0bec91ff2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga541eec9e102156579ad86cc440d741b1" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga541eec9e102156579ad86cc440d741b1" > OSGetActiveThreadLink< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, < a class = "el" href = "group__coreinit__threadq.html#structOSThreadLink" > OSThreadLink< / a > *link)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga541eec9e102156579ad86cc440d741b1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get the next and previous thread in the thread's active queue. < a href = "group__coreinit__thread.html#ga541eec9e102156579ad86cc440d741b1" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga541eec9e102156579ad86cc440d741b1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga3665f0196d1fc7983ad7a311fa1bfc37" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga3665f0196d1fc7983ad7a311fa1bfc37" > OSGetCurrentThread< / a > ()< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga3665f0196d1fc7983ad7a311fa1bfc37" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Return pointer to OSThread object for the current thread. < a href = "group__coreinit__thread.html#ga3665f0196d1fc7983ad7a311fa1bfc37" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga3665f0196d1fc7983ad7a311fa1bfc37" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gad10a0ac959b7542472ae547a1e38b2b7" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gad10a0ac959b7542472ae547a1e38b2b7" > OSGetDefaultThread< / a > (uint32_t coreID)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gad10a0ac959b7542472ae547a1e38b2b7" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the default thread for a specific core. < a href = "group__coreinit__thread.html#gad10a0ac959b7542472ae547a1e38b2b7" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gad10a0ac959b7542472ae547a1e38b2b7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga42e2be4ac798739e6b6e947099547921" > < td class = "memItemLeft" align = "right" valign = "top" > uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga42e2be4ac798739e6b6e947099547921" > OSGetStackPointer< / a > ()< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga42e2be4ac798739e6b6e947099547921" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Return current stack pointer, value of r1 register. < a href = "group__coreinit__thread.html#ga42e2be4ac798739e6b6e947099547921" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga42e2be4ac798739e6b6e947099547921" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga62e2afe54836ced17ce04b005b9be728" > < td class = "memItemLeft" align = "right" valign = "top" > uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga62e2afe54836ced17ce04b005b9be728" > OSGetThreadAffinity< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga62e2afe54836ced17ce04b005b9be728" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get a thread's affinity. < a href = "group__coreinit__thread.html#ga62e2afe54836ced17ce04b005b9be728" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga62e2afe54836ced17ce04b005b9be728" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga308e195cdc22b0290ea5b84774bf481e" > < td class = "memItemLeft" align = "right" valign = "top" > const char *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga308e195cdc22b0290ea5b84774bf481e" > OSGetThreadName< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga308e195cdc22b0290ea5b84774bf481e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get a thread's name. < a href = "group__coreinit__thread.html#ga308e195cdc22b0290ea5b84774bf481e" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga308e195cdc22b0290ea5b84774bf481e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga9e1c9d9b8de8927fb46276114a2f43ec" > < td class = "memItemLeft" align = "right" valign = "top" > int32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga9e1c9d9b8de8927fb46276114a2f43ec" > OSGetThreadPriority< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga9e1c9d9b8de8927fb46276114a2f43ec" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get a thread's base priority. < a href = "group__coreinit__thread.html#ga9e1c9d9b8de8927fb46276114a2f43ec" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga9e1c9d9b8de8927fb46276114a2f43ec" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga94cfe1592be09c48ba2ee9718297ee3d" > < td class = "memItemLeft" align = "right" valign = "top" > void *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga94cfe1592be09c48ba2ee9718297ee3d" > OSGetThreadSpecific< / a > (uint32_t id)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga94cfe1592be09c48ba2ee9718297ee3d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get a thread's specific value set by OSSetThreadSpecific. < a href = "group__coreinit__thread.html#ga94cfe1592be09c48ba2ee9718297ee3d" > More...< / a > < br / > < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "separator:ga94cfe1592be09c48ba2ee9718297ee3d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga0074df288baf29c18a7c823c258ba353" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga0074df288baf29c18a7c823c258ba353" > OSIsThreadSuspended< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga0074df288baf29c18a7c823c258ba353" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns TRUE if a thread is suspended. < a href = "group__coreinit__thread.html#ga0074df288baf29c18a7c823c258ba353" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga0074df288baf29c18a7c823c258ba353" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga0bec4859c6c3575439660463ab58fc14" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga0bec4859c6c3575439660463ab58fc14" > OSIsThreadTerminated< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga0bec4859c6c3575439660463ab58fc14" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns TRUE if a thread is terminated. < a href = "group__coreinit__thread.html#ga0bec4859c6c3575439660463ab58fc14" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga0bec4859c6c3575439660463ab58fc14" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gabadb986bf587ed067719230d0194e432" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gabadb986bf587ed067719230d0194e432" > OSJoinThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, int *threadResult)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gabadb986bf587ed067719230d0194e432" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Wait until thread is terminated. < a href = "group__coreinit__thread.html#gabadb986bf587ed067719230d0194e432" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gabadb986bf587ed067719230d0194e432" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga8e47bab6ad06370cbb0990d979e1729b" > < td class = "memItemLeft" align = "right" valign = "top" > int32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga8e47bab6ad06370cbb0990d979e1729b" > OSResumeThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga8e47bab6ad06370cbb0990d979e1729b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Resumes a thread. < a href = "group__coreinit__thread.html#ga8e47bab6ad06370cbb0990d979e1729b" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga8e47bab6ad06370cbb0990d979e1729b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gaa3241ca6d126d3b4dc4be94d9836f573" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaa3241ca6d126d3b4dc4be94d9836f573" > OSRunThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, < a class = "el" href = "group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9" > OSThreadEntryPointFn< / a > entry, int argc, const char **argv)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaa3241ca6d126d3b4dc4be94d9836f573" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Run a function on an already created thread. < a href = "group__coreinit__thread.html#gaa3241ca6d126d3b4dc4be94d9836f573" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaa3241ca6d126d3b4dc4be94d9836f573" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga64b826e25d3352b17abf9a1e4243837e" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga64b826e25d3352b17abf9a1e4243837e" > OSSetThreadAffinity< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, uint32_t affinity)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga64b826e25d3352b17abf9a1e4243837e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set a thread's affinity. < a href = "group__coreinit__thread.html#ga64b826e25d3352b17abf9a1e4243837e" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga64b826e25d3352b17abf9a1e4243837e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga5ab3e3f830d155273978285c2ee0670f" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga5ab3e3f830d155273978285c2ee0670f" > OSSetThreadCancelState< / a > (< a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > state)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga5ab3e3f830d155273978285c2ee0670f" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set a thread's cancellation state. < a href = "group__coreinit__thread.html#ga5ab3e3f830d155273978285c2ee0670f" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga5ab3e3f830d155273978285c2ee0670f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a" > OSThreadCleanupCallbackFn< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > OSSetThreadCleanupCallback< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, < a class = "el" href = "group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a" > OSThreadCleanupCallbackFn< / a > callback)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set the callback to be called just before a thread is terminated. < a href = "group__coreinit__thread.html#gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gab5f71458522cd623a26fda4bc7a08706" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422" > OSThreadDeallocatorFn< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gab5f71458522cd623a26fda4bc7a08706" > OSSetThreadDeallocator< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, < a class = "el" href = "group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422" > OSThreadDeallocatorFn< / a > deallocator)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gab5f71458522cd623a26fda4bc7a08706" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set the callback to be called just after a thread is terminated. < a href = "group__coreinit__thread.html#gab5f71458522cd623a26fda4bc7a08706" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gab5f71458522cd623a26fda4bc7a08706" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gaf73770f5c74390d22caa7e993e667984" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaf73770f5c74390d22caa7e993e667984" > OSSetThreadName< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, const char *name)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaf73770f5c74390d22caa7e993e667984" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set a thread's name. < a href = "group__coreinit__thread.html#gaf73770f5c74390d22caa7e993e667984" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaf73770f5c74390d22caa7e993e667984" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gaf949db9990798fe799eef6f10400febc" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaf949db9990798fe799eef6f10400febc" > OSSetThreadPriority< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, int32_t priority)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaf949db9990798fe799eef6f10400febc" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set a thread's priority. < a href = "group__coreinit__thread.html#gaf949db9990798fe799eef6f10400febc" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaf949db9990798fe799eef6f10400febc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > OSSetThreadRunQuantum< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, uint32_t quantum)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set a thread's run quantum. < a href = "group__coreinit__thread.html#gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:gaa5ec19889db9ab9d679ed56b49c8dd44" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaa5ec19889db9ab9d679ed56b49c8dd44" > OSSetThreadSpecific< / a > (uint32_t id, void *value)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaa5ec19889db9ab9d679ed56b49c8dd44" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set a thread specific value. < a href = "group__coreinit__thread.html#gaa5ec19889db9ab9d679ed56b49c8dd44" > More...< / a > < br / > < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "separator:gaa5ec19889db9ab9d679ed56b49c8dd44" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > OSSetThreadStackUsage< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Set thread stack usage tracking. < a href = "group__coreinit__thread.html#ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga40601ddddabf312483c9a3da0a924fa6" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga40601ddddabf312483c9a3da0a924fa6" > OSSleepThread< / a > (< a class = "el" href = "group__coreinit__threadq.html#structOSThreadQueue" > OSThreadQueue< / a > *queue)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga40601ddddabf312483c9a3da0a924fa6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sleep the current thread and add it to a thread queue. < a href = "group__coreinit__thread.html#ga40601ddddabf312483c9a3da0a924fa6" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga40601ddddabf312483c9a3da0a924fa6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gaec240f68873bb19c753cfdd346264c17" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaec240f68873bb19c753cfdd346264c17" > OSSleepTicks< / a > (< a class = "el" href = "group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d" > OSTime< / a > ticks)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaec240f68873bb19c753cfdd346264c17" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sleep the current thread for a period of time. < a href = "group__coreinit__thread.html#gaec240f68873bb19c753cfdd346264c17" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaec240f68873bb19c753cfdd346264c17" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-04-22 02:21:17 +02:00
< tr class = "memitem:ga97d4800cbe08b3e3cd68906a197bf587" > < td class = "memItemLeft" align = "right" valign = "top" > uint32_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga97d4800cbe08b3e3cd68906a197bf587" > OSSuspendThread< / a > (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga97d4800cbe08b3e3cd68906a197bf587" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Suspend a thread. < a href = "group__coreinit__thread.html#ga97d4800cbe08b3e3cd68906a197bf587" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga97d4800cbe08b3e3cd68906a197bf587" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ga3d5f9fe631c3b30a30ee84a2d32a617c" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga3d5f9fe631c3b30a30ee84a2d32a617c" > OSTestThreadCancel< / a > ()< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga3d5f9fe631c3b30a30ee84a2d32a617c" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Check to see if the current thread should be cancelled or suspended. < a href = "group__coreinit__thread.html#ga3d5f9fe631c3b30a30ee84a2d32a617c" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga3d5f9fe631c3b30a30ee84a2d32a617c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga233d3d678de8dcccceb18424e24950b8" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#ga233d3d678de8dcccceb18424e24950b8" > OSWakeupThread< / a > (< a class = "el" href = "group__coreinit__threadq.html#structOSThreadQueue" > OSThreadQueue< / a > *queue)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga233d3d678de8dcccceb18424e24950b8" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Wake up all threads in queue. < a href = "group__coreinit__thread.html#ga233d3d678de8dcccceb18424e24950b8" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga233d3d678de8dcccceb18424e24950b8" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:gaabc089f75f232061a8ba1c2f4d3a9169" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__thread.html#gaabc089f75f232061a8ba1c2f4d3a9169" > OSYieldThread< / a > ()< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gaabc089f75f232061a8ba1c2f4d3a9169" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Yield execution to waiting threads with same priority. < a href = "group__coreinit__thread.html#gaabc089f75f232061a8ba1c2f4d3a9169" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gaabc089f75f232061a8ba1c2f4d3a9169" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
2020-03-26 06:49:18 +01:00
< p > Manage and run threads on each of the system's cores.< / p >
2016-01-07 20:25:33 +01:00
< p > The thread scheduler in the Wii U uses co-operative scheduling, this is different to the usual pre-emptive scheduling that most operating systems use (such as Windows, Linux, etc). In co-operative scheduling threads must voluntarily yield execution to other threads. In pre-emptive threads are switched by the operating system after an amount of time.< / p >
< p > With the Wii U's scheduling model the thread with the highest priority which is in a non-waiting state will always be running (where 0 is the highest priority and 31 is the lowest). Execution will only switch to other threads once this thread has been forced to wait, such as when waiting to acquire a mutex, or when the thread voluntarily yields execution to other threads which have the same priority using OSYieldThread. OSYieldThread will never yield to a thread with lower priority than the current thread. < / p >
2018-07-26 12:52:03 +02:00
< hr / > < h2 class = "groupheader" > Data Structure Documentation< / h2 >
< a name = "structOSMutexQueue" id = "structOSMutexQueue" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#structOSMutexQueue" > ◆ < / a > < / span > OSMutexQueue< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > struct OSMutexQueue< / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< div class = "textblock" >
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00097" > 97< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
< / div > < table class = "fieldtable" >
< tr > < th colspan = "3" > Data Fields< / th > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a0896610fffd2641ab3f42ea99b6d147a" > < / a > < a class = "el" href = "group__coreinit__mutex.html#structOSMutex" > OSMutex< / a > *< / td >
< td class = "fieldname" >
head< / td >
< td class = "fielddoc" >
< / td > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a69d02e959411b8ca397138183d931eae" > < / a > < a class = "el" href = "group__coreinit__mutex.html#structOSMutex" > OSMutex< / a > *< / td >
< td class = "fieldname" >
tail< / td >
< td class = "fielddoc" >
< / td > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a5f450b216725a37cbc0acd54340144d9" > < / a > void *< / td >
< td class = "fieldname" >
parent< / td >
< td class = "fielddoc" >
< / td > < / tr >
< / table >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a name = "structOSFastMutexQueue" id = "structOSFastMutexQueue" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#structOSFastMutexQueue" > ◆ < / a > < / span > OSFastMutexQueue< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > struct OSFastMutexQueue< / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< div class = "textblock" >
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00109" > 109< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
< / div > < table class = "fieldtable" >
< tr > < th colspan = "3" > Data Fields< / th > < / tr >
< tr > < td class = "fieldtype" >
< a id = "ad55284e8266fdfe37e1c0900cf3c72dc" > < / a > < a class = "el" href = "group__coreinit__fastmutex.html#structOSFastMutex" > OSFastMutex< / a > *< / td >
< td class = "fieldname" >
head< / td >
< td class = "fielddoc" >
< / td > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a1563f8b9f6ceef503288783aa43fcb86" > < / a > < a class = "el" href = "group__coreinit__fastmutex.html#structOSFastMutex" > OSFastMutex< / a > *< / td >
< td class = "fieldname" >
tail< / td >
< td class = "fielddoc" >
< / td > < / tr >
< / table >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< h2 class = "groupheader" > Macro Definition Documentation< / h2 >
< a id = "ga557f93deefa5ce76cc300ec1beb0c879" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga557f93deefa5ce76cc300ec1beb0c879" > ◆ < / a > < / span > OS_THREAD_TAG< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > #define OS_THREAD_TAG      0x74487244u< / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00118" > 118< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< h2 class = "groupheader" > Typedef Documentation< / h2 >
< a id = "ga1a46c02caff79a13ecf041e55a454696" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga1a46c02caff79a13ecf041e55a454696" > ◆ < / a > < / span > OSFastMutex< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > typedef struct < a class = "el" href = "group__coreinit__fastmutex.html#structOSFastMutex" > OSFastMutex< / a > < a class = "el" href = "group__coreinit__fastmutex.html#structOSFastMutex" > OSFastMutex< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00033" > 33< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga6ab521577a62122534149c14253952cb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga6ab521577a62122534149c14253952cb" > ◆ < / a > < / span > OSFastMutexQueue< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > typedef struct < a class = "el" href = "group__coreinit__thread.html#structOSFastMutexQueue" > OSFastMutexQueue< / a > < a class = "el" href = "group__coreinit__thread.html#structOSFastMutexQueue" > OSFastMutexQueue< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00034" > 34< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga42b7c5a07043d7f6c8324f51ac1747c8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga42b7c5a07043d7f6c8324f51ac1747c8" > ◆ < / a > < / span > OSMutex< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > typedef struct < a class = "el" href = "group__coreinit__mutex.html#structOSMutex" > OSMutex< / a > < a class = "el" href = "group__coreinit__mutex.html#structOSMutex" > OSMutex< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00035" > 35< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga585231e15c29fd8485e2ef645623fdec" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga585231e15c29fd8485e2ef645623fdec" > ◆ < / a > < / span > OSMutexQueue< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > typedef struct < a class = "el" href = "group__coreinit__thread.html#structOSMutexQueue" > OSMutexQueue< / a > < a class = "el" href = "group__coreinit__thread.html#structOSMutexQueue" > OSMutexQueue< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00036" > 36< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga21cc46877b04baece01ef544fa06a906" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga21cc46877b04baece01ef544fa06a906" > ◆ < / a > < / span > OSThread< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-04-22 02:21:17 +02:00
< td class = "memname" > typedef struct < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00037" > 37< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga1c33fd51f40dec4bfff9d98992c7e2cc" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga1c33fd51f40dec4bfff9d98992c7e2cc" > ◆ < / a > < / span > OSThreadState< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-01-11 02:17:32 +01:00
< td class = "memname" > typedef uint8_t < a class = "el" href = "group__coreinit__thread.html#ga1c33fd51f40dec4bfff9d98992c7e2cc" > OSThreadState< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-01-11 02:17:32 +01:00
< p > A value from enum OS_THREAD_STATE. < / p >
2016-01-08 18:00:17 +01:00
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00040" > 40< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga2b4866b3e51f4690fd197462d2cdebe7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga2b4866b3e51f4690fd197462d2cdebe7" > ◆ < / a > < / span > OSThreadRequest< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-01-11 02:17:32 +01:00
< td class = "memname" > typedef uint32_t < a class = "el" href = "group__coreinit__thread.html#ga2b4866b3e51f4690fd197462d2cdebe7" > OSThreadRequest< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-01-11 02:17:32 +01:00
< p > A value from enum OS_THREAD_REQUEST. < / p >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00043" > 43< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga47c38b62e66b6163f6b080a35830897a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga47c38b62e66b6163f6b080a35830897a" > ◆ < / a > < / span > OSThreadAttributes< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-01-11 02:17:32 +01:00
< td class = "memname" > typedef uint8_t < a class = "el" href = "group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a" > OSThreadAttributes< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2016-01-11 02:17:32 +01:00
< p > A bitfield of enum OS_THREAD_ATTRIB. < / p >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00046" > 46< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gab5cdc96dcec643891f88be54830acae9" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gab5cdc96dcec643891f88be54830acae9" > ◆ < / a > < / span > OSThreadEntryPointFn< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > typedef int(* OSThreadEntryPointFn) (int argc, const char **argv)< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00048" > 48< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga729a75fba87a2740d7af69aa8978ea5a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga729a75fba87a2740d7af69aa8978ea5a" > ◆ < / a > < / span > OSThreadCleanupCallbackFn< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-04-22 02:21:17 +02:00
< td class = "memname" > typedef void(* OSThreadCleanupCallbackFn) (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, void *stack)< / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00049" > 49< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gac8fa3d74d8d161709d327e38eb426422" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gac8fa3d74d8d161709d327e38eb426422" > ◆ < / a > < / span > OSThreadDeallocatorFn< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-04-22 02:21:17 +02:00
< td class = "memname" > typedef void(* OSThreadDeallocatorFn) (< a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *thread, void *stack)< / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00050" > 50< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
< h2 class = "groupheader" > Enumeration Type Documentation< / h2 >
2018-07-26 12:52:03 +02:00
< a id = "ga2051f6f880e722ee1c16d7a9b33fc285" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga2051f6f880e722ee1c16d7a9b33fc285" > ◆ < / a > < / span > OS_THREAD_STATE< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-01-11 02:17:32 +01:00
< td class = "memname" > enum < a class = "el" href = "group__coreinit__thread.html#ga2051f6f880e722ee1c16d7a9b33fc285" > OS_THREAD_STATE< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< table class = "fieldtable" >
2018-07-26 12:52:03 +02:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < a id = "gga2051f6f880e722ee1c16d7a9b33fc285a13a1674553ea65a706ae780c20ae84bc" > < / a > OS_THREAD_STATE_NONE  < / td > < td class = "fielddoc" > < / td > < / tr >
< tr > < td class = "fieldname" > < a id = "gga2051f6f880e722ee1c16d7a9b33fc285aba95f54efb4f40634409efe14ac7aa1f" > < / a > OS_THREAD_STATE_READY  < / td > < td class = "fielddoc" > < p > Thread is ready to run. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga2051f6f880e722ee1c16d7a9b33fc285ad2b8ca7ea948310fdce859f2a7fd265b" > < / a > OS_THREAD_STATE_RUNNING  < / td > < td class = "fielddoc" > < p > Thread is running. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga2051f6f880e722ee1c16d7a9b33fc285a4318e1cf6017f194840a32dd1be1d57f" > < / a > OS_THREAD_STATE_WAITING  < / td > < td class = "fielddoc" > < p > Thread is waiting, i.e. on a mutex. < / p >
2016-01-07 20:25:33 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga2051f6f880e722ee1c16d7a9b33fc285a1a499958e89f028b8c3d29f869f97517" > < / a > OS_THREAD_STATE_MORIBUND  < / td > < td class = "fielddoc" > < p > Thread is about to terminate. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
< / table >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00052" > 52< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gac1b924b5c296e435eae41f0bf395d02a" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gac1b924b5c296e435eae41f0bf395d02a" > ◆ < / a > < / span > OS_THREAD_REQUEST< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-01-08 18:00:17 +01:00
< td class = "memname" > enum < a class = "el" href = "group__coreinit__thread.html#gac1b924b5c296e435eae41f0bf395d02a" > OS_THREAD_REQUEST< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< table class = "fieldtable" >
2018-07-26 12:52:03 +02:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < a id = "ggac1b924b5c296e435eae41f0bf395d02aa46b42c24c445d69479b6a163ada1c3c0" > < / a > OS_THREAD_REQUEST_NONE  < / td > < td class = "fielddoc" > < / td > < / tr >
< tr > < td class = "fieldname" > < a id = "ggac1b924b5c296e435eae41f0bf395d02aa632959c993cef4fd2735051db6797329" > < / a > OS_THREAD_REQUEST_SUSPEND  < / td > < td class = "fielddoc" > < / td > < / tr >
< tr > < td class = "fieldname" > < a id = "ggac1b924b5c296e435eae41f0bf395d02aab227c9a028b4fb3a9f71afc33995748a" > < / a > OS_THREAD_REQUEST_CANCEL  < / td > < td class = "fielddoc" > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< / table >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00069" > 69< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga93f63e1c4e8826006db8878c9a6d0519" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga93f63e1c4e8826006db8878c9a6d0519" > ◆ < / a > < / span > OS_THREAD_ATTRIB< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2016-01-11 02:17:32 +01:00
< td class = "memname" > enum < a class = "el" href = "group__coreinit__thread.html#ga93f63e1c4e8826006db8878c9a6d0519" > OS_THREAD_ATTRIB< / a > < / td >
2016-01-07 17:06:06 +01:00
< / tr >
< / table >
< / div > < div class = "memdoc" >
< table class = "fieldtable" >
2018-07-26 12:52:03 +02:00
< tr > < th colspan = "2" > Enumerator< / th > < / tr > < tr > < td class = "fieldname" > < a id = "gga93f63e1c4e8826006db8878c9a6d0519a3ea0c3a38f1342783fd2ddfa6a84a13d" > < / a > OS_THREAD_ATTRIB_AFFINITY_CPU0  < / td > < td class = "fielddoc" > < p > Allow the thread to run on CPU0. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga93f63e1c4e8826006db8878c9a6d0519adcea8a57b4636bc5a0c3e283ce83e0f7" > < / a > OS_THREAD_ATTRIB_AFFINITY_CPU1  < / td > < td class = "fielddoc" > < p > Allow the thread to run on CPU1. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga93f63e1c4e8826006db8878c9a6d0519a1434f284dfb835aa2d0704cebf81345c" > < / a > OS_THREAD_ATTRIB_AFFINITY_CPU2  < / td > < td class = "fielddoc" > < p > Allow the thread to run on CPU2. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga93f63e1c4e8826006db8878c9a6d0519abb854560be1fd9b10763999f08b3591b" > < / a > OS_THREAD_ATTRIB_AFFINITY_ANY  < / td > < td class = "fielddoc" > < p > Allow the thread to run any CPU. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga93f63e1c4e8826006db8878c9a6d0519a643750f290d1a1327e4d6f83a385a923" > < / a > OS_THREAD_ATTRIB_DETACHED  < / td > < td class = "fielddoc" > < p > Start the thread detached. < / p >
2016-01-11 02:17:32 +01:00
< / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr > < td class = "fieldname" > < a id = "gga93f63e1c4e8826006db8878c9a6d0519a6b6ea70f704c863a0a37b03ffbffaa85" > < / a > OS_THREAD_ATTRIB_STACK_USAGE  < / td > < td class = "fielddoc" > < p > Enables tracking of stack usage. < / p >
2016-01-07 17:06:06 +01:00
< / td > < / tr >
< / table >
2018-07-26 12:52:03 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00076" > 76< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
< h2 class = "groupheader" > Function Documentation< / h2 >
2019-04-22 02:21:17 +02:00
< a id = "ga8a726fc00d3ec7659f577eda3b5295b2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga8a726fc00d3ec7659f577eda3b5295b2" > ◆ < / a > < / span > WUT_ALIGNAS()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > struct WUT_ALIGNAS < / td >
< td > (< / td >
< td class = "paramtype" > 8  < / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Should always be set to the value OS_THREAD_TAG.< / p >
< p > Bitfield of OS_THREAD_STATE< / p >
< p > Bitfield of OS_THREAD_ATTRIB< / p >
< p > Unique thread ID< / p >
< p > Suspend count (increased by OSSuspendThread).< / p >
< p > Actual priority of thread.< / p >
< p > Base priority of thread, 0 is highest priority, 31 is lowest priority.< / p >
< p > Exit value< / p >
< p > Queue the thread is currently waiting on< / p >
< p > Link used for thread queue< / p >
< p > Queue of threads waiting to join this thread< / p >
< p > Mutex this thread is waiting to lock< / p >
< p > Queue of mutexes this thread owns< / p >
< p > Link for global active thread queue< / p >
< p > Stack start (top, highest address)< / p >
< p > Stack end (bottom, lowest address)< / p >
< p > Thread entry point< / p >
< p > Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific.< / p >
< p > Thread name, accessed with OSSetThreadName and OSGetThreadName.< / p >
< p > The stack pointer passed in OSCreateThread.< / p >
< p > Called just before thread is terminated, set with OSSetThreadCleanupCallback< / p >
< p > Called just after a thread is terminated, set with OSSetThreadDeallocator< / p >
< p > If TRUE then a thread can be cancelled or suspended, set with OSSetThreadCancelState< / p >
< p > Current thread request, used for cancelleing and suspending the thread.< / p >
< p > Pending suspend request count< / p >
< p > Result of thread suspend< / p >
2020-03-26 06:49:18 +01:00
< p > Queue of threads waiting for a thread to be suspended.< / p >
2019-04-22 02:21:17 +02:00
< p class = "definition" > Definition at line < a class = "el" href = "thread_8h_source.html#l00120" > 120< / a > of file < a class = "el" href = "thread_8h_source.html" > thread.h< / a > .< / p >
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga4dc00e8b9758c58fbdbb73350637f805" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga4dc00e8b9758c58fbdbb73350637f805" > ◆ < / a > < / span > OSCancelThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSCancelThread < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Cancels a thread. < / p >
2016-01-07 20:25:33 +01:00
< p > This sets the threads requestFlag to OS_THREAD_REQUEST_CANCEL, the thread will be terminated next time OSTestThreadCancel is called. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga0b90395dabd5e3077b274f8dd65fe5bb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga0b90395dabd5e3077b274f8dd65fe5bb" > ◆ < / a > < / span > OSCheckActiveThreads()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int32_t OSCheckActiveThreads < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Returns the count of active threads. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga2bfc1c71ab2551fa12c1dd26c8c9efce" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga2bfc1c71ab2551fa12c1dd26c8c9efce" > ◆ < / a > < / span > OSCheckThreadStackUsage()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int32_t OSCheckThreadStackUsage < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Get the maximum amount of stack the thread has used. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaf3ca5305804fa4552529c5912c96ce2b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaf3ca5305804fa4552529c5912c96ce2b" > ◆ < / a > < / span > OSClearThreadStackUsage()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSClearThreadStackUsage < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Disable tracking of thread stack usage. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga6aa2bd70bb3560ca3811aa0215971cf8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga6aa2bd70bb3560ca3811aa0215971cf8" > ◆ < / a > < / span > OSContinueThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSContinueThread < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Clears a thread's suspend counter and resumes it. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga558f8aecea78aa6a81817c1d1fcbe8b1" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga558f8aecea78aa6a81817c1d1fcbe8b1" > ◆ < / a > < / span > OSCreateThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSCreateThread < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9" > OSThreadEntryPointFn< / a >   < / td >
< td class = "paramname" > < em > entry< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t  < / td >
< td class = "paramname" > < em > argc< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > char *  < / td >
< td class = "paramname" > < em > argv< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > void *  < / td >
< td class = "paramname" > < em > stack< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > stackSize< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t  < / td >
< td class = "paramname" > < em > priority< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2016-01-08 18:00:17 +01:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a" > OSThreadAttributes< / a >   < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > attributes< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Create a new thread. < / p >
2016-01-07 20:25:33 +01:00
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > thread< / td > < td > Thread to initialise. < / td > < / tr >
< tr > < td class = "paramname" > entry< / td > < td > Thread entry point. < / td > < / tr >
< tr > < td class = "paramname" > argc< / td > < td > argc argument passed to entry point. < / td > < / tr >
< tr > < td class = "paramname" > argv< / td > < td > argv argument passed to entry point. < / td > < / tr >
< tr > < td class = "paramname" > stack< / td > < td > Top of stack (highest address). < / td > < / tr >
< tr > < td class = "paramname" > stackSize< / td > < td > Size of stack. < / td > < / tr >
< tr > < td class = "paramname" > priority< / td > < td > Thread priority, 0 is highest priorty, 31 is lowest. < / td > < / tr >
< tr > < td class = "paramname" > attributes< / td > < td > Thread attributes, see OSThreadAttributes. < / td > < / tr >
< / table >
< / dd >
< / dl >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga5c8cbb581c038073ea97105cbc389e73" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga5c8cbb581c038073ea97105cbc389e73" > ◆ < / a > < / span > OSDetachThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSDetachThread < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Detach thread. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga481f2365b62f2ed1b7cda3d0bec91ff2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga481f2365b62f2ed1b7cda3d0bec91ff2" > ◆ < / a > < / span > OSExitThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSExitThread < / td >
< td > (< / td >
< td class = "paramtype" > int32_t  < / td >
< td class = "paramname" > < em > result< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Exit the current thread with a exit code. < / p >
2016-01-07 20:25:33 +01:00
< p > This function is implicitly called when the thread entry point returns. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga541eec9e102156579ad86cc440d741b1" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga541eec9e102156579ad86cc440d741b1" > ◆ < / a > < / span > OSGetActiveThreadLink()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSGetActiveThreadLink < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__threadq.html#structOSThreadLink" > OSThreadLink< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > link< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Get the next and previous thread in the thread's active queue. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga3665f0196d1fc7983ad7a311fa1bfc37" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga3665f0196d1fc7983ad7a311fa1bfc37" > ◆ < / a > < / span > OSGetCurrentThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-04-22 02:21:17 +02:00
< td class = "memname" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > * OSGetCurrentThread < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2019-04-22 02:21:17 +02:00
< p > Return pointer to OSThread object for the current thread. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gad10a0ac959b7542472ae547a1e38b2b7" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gad10a0ac959b7542472ae547a1e38b2b7" > ◆ < / a > < / span > OSGetDefaultThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2019-04-22 02:21:17 +02:00
< td class = "memname" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > * OSGetDefaultThread < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > coreID< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Returns the default thread for a specific core. < / p >
2016-01-07 20:25:33 +01:00
< p > Each core has 1 default thread created before the game boots. The default thread for core 1 calls the RPX entry point, the default threads for core 0 and 2 are suspended and can be used with OSRunThread. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga42e2be4ac798739e6b6e947099547921" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga42e2be4ac798739e6b6e947099547921" > ◆ < / a > < / span > OSGetStackPointer()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > uint32_t OSGetStackPointer < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Return current stack pointer, value of r1 register. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga62e2afe54836ced17ce04b005b9be728" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga62e2afe54836ced17ce04b005b9be728" > ◆ < / a > < / span > OSGetThreadAffinity()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > uint32_t OSGetThreadAffinity < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Get a thread's affinity. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga308e195cdc22b0290ea5b84774bf481e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga308e195cdc22b0290ea5b84774bf481e" > ◆ < / a > < / span > OSGetThreadName()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > const char* OSGetThreadName < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Get a thread's name. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga9e1c9d9b8de8927fb46276114a2f43ec" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga9e1c9d9b8de8927fb46276114a2f43ec" > ◆ < / a > < / span > OSGetThreadPriority()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int32_t OSGetThreadPriority < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Get a thread's base priority. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga94cfe1592be09c48ba2ee9718297ee3d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga94cfe1592be09c48ba2ee9718297ee3d" > ◆ < / a > < / span > OSGetThreadSpecific()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > void* OSGetThreadSpecific < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > id< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Get a thread's specific value set by OSSetThreadSpecific. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga0074df288baf29c18a7c823c258ba353" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga0074df288baf29c18a7c823c258ba353" > ◆ < / a > < / span > OSIsThreadSuspended()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSIsThreadSuspended < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Returns TRUE if a thread is suspended. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga0bec4859c6c3575439660463ab58fc14" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga0bec4859c6c3575439660463ab58fc14" > ◆ < / a > < / span > OSIsThreadTerminated()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSIsThreadTerminated < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Returns TRUE if a thread is terminated. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gabadb986bf587ed067719230d0194e432" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gabadb986bf587ed067719230d0194e432" > ◆ < / a > < / span > OSJoinThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSJoinThread < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int *  < / td >
< td class = "paramname" > < em > threadResult< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Wait until thread is terminated. < / p >
2016-01-07 20:25:33 +01:00
< p > If the target thread is detached, returns FALSE.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > thread< / td > < td > Thread to wait for < / td > < / tr >
< tr > < td class = "paramname" > threadResult< / td > < td > Pointer to store thread exit value in. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > Returns TRUE if thread has terminated, FALSE if thread is detached. < / dd > < / dl >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga8e47bab6ad06370cbb0990d979e1729b" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga8e47bab6ad06370cbb0990d979e1729b" > ◆ < / a > < / span > OSResumeThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > int32_t OSResumeThread < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Resumes a thread. < / p >
2016-01-07 20:25:33 +01:00
< p > Decrements the thread's suspend counter, if the counter reaches 0 the thread is resumed.< / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > Returns the previous value of the suspend counter. < / dd > < / dl >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaa3241ca6d126d3b4dc4be94d9836f573" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaa3241ca6d126d3b4dc4be94d9836f573" > ◆ < / a > < / span > OSRunThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSRunThread < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9" > OSThreadEntryPointFn< / a >   < / td >
< td class = "paramname" > < em > entry< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int  < / td >
< td class = "paramname" > < em > argc< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char **  < / td >
< td class = "paramname" > < em > argv< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Run a function on an already created thread. < / p >
2016-01-07 20:25:33 +01:00
< p > Can only be used on idle threads. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga64b826e25d3352b17abf9a1e4243837e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga64b826e25d3352b17abf9a1e4243837e" > ◆ < / a > < / span > OSSetThreadAffinity()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSSetThreadAffinity < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > affinity< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Set a thread's affinity. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga5ab3e3f830d155273978285c2ee0670f" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga5ab3e3f830d155273978285c2ee0670f" > ◆ < / a > < / span > OSSetThreadCancelState()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSSetThreadCancelState < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a >   < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > state< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Set a thread's cancellation state. < / p >
2016-01-07 20:25:33 +01:00
< p > If the state is TRUE then the thread can be suspended or cancelled when OSTestThreadCancel is called. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaddb66bd8a4fcdd50eec34e0eaabaa4ea" > ◆ < / a > < / span > OSSetThreadCleanupCallback()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a" > OSThreadCleanupCallbackFn< / a > OSSetThreadCleanupCallback < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a" > OSThreadCleanupCallbackFn< / a >   < / td >
< td class = "paramname" > < em > callback< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Set the callback to be called just before a thread is terminated. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gab5f71458522cd623a26fda4bc7a08706" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gab5f71458522cd623a26fda4bc7a08706" > ◆ < / a > < / span > OSSetThreadDeallocator()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422" > OSThreadDeallocatorFn< / a > OSSetThreadDeallocator < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > < a class = "el" href = "group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422" > OSThreadDeallocatorFn< / a >   < / td >
< td class = "paramname" > < em > deallocator< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Set the callback to be called just after a thread is terminated. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaf73770f5c74390d22caa7e993e667984" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaf73770f5c74390d22caa7e993e667984" > ◆ < / a > < / span > OSSetThreadName()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSSetThreadName < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const char *  < / td >
< td class = "paramname" > < em > name< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Set a thread's name. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaf949db9990798fe799eef6f10400febc" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaf949db9990798fe799eef6f10400febc" > ◆ < / a > < / span > OSSetThreadPriority()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSSetThreadPriority < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t  < / td >
< td class = "paramname" > < em > priority< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Set a thread's priority. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gabcdf5e618af28ab7d0eb1dcc9dfc9d36" > ◆ < / a > < / span > OSSetThreadRunQuantum()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSSetThreadRunQuantum < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > quantum< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Set a thread's run quantum. < / p >
2016-01-07 20:25:33 +01:00
< p > This is the maximum amount of time the thread can run for before being forced to yield. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaa5ec19889db9ab9d679ed56b49c8dd44" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaa5ec19889db9ab9d679ed56b49c8dd44" > ◆ < / a > < / span > OSSetThreadSpecific()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSSetThreadSpecific < / td >
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > id< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > void *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > value< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Set a thread specific value. < / p >
2016-01-07 20:25:33 +01:00
< p > Can be read with OSGetThreadSpecific. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga3be0f7ef0eed586ef8bf5d57f3cd1dfa" > ◆ < / a > < / span > OSSetThreadStackUsage()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2018-07-26 12:52:03 +02:00
< td class = "memname" > < a class = "el" href = "wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372" > BOOL< / a > OSSetThreadStackUsage < / td >
2016-01-07 17:06:06 +01:00
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Set thread stack usage tracking. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga40601ddddabf312483c9a3da0a924fa6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga40601ddddabf312483c9a3da0a924fa6" > ◆ < / a > < / span > OSSleepThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSSleepThread < / td >
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__threadq.html#structOSThreadQueue" > OSThreadQueue< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > queue< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Sleep the current thread and add it to a thread queue. < / p >
2016-01-07 20:25:33 +01:00
< p > Will sleep until the thread queue is woken with OSWakeupThread. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaec240f68873bb19c753cfdd346264c17" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaec240f68873bb19c753cfdd346264c17" > ◆ < / a > < / span > OSSleepTicks()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSSleepTicks < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d" > OSTime< / a >   < / td >
< td class = "paramname" > < em > ticks< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
2016-01-07 20:25:33 +01:00
< p > Sleep the current thread for a period of time. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga97d4800cbe08b3e3cd68906a197bf587" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga97d4800cbe08b3e3cd68906a197bf587" > ◆ < / a > < / span > OSSuspendThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > uint32_t OSSuspendThread < / td >
< td > (< / td >
2019-04-22 02:21:17 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__mutex.html#ga21cc46877b04baece01ef544fa06a906" > OSThread< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > thread< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Suspend a thread. < / p >
2016-01-07 20:25:33 +01:00
< p > Increases a thread's suspend counter, if the counter is > 0 then the thread is suspended.< / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > Returns the thread's previous suspend counter value < / dd > < / dl >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga3d5f9fe631c3b30a30ee84a2d32a617c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga3d5f9fe631c3b30a30ee84a2d32a617c" > ◆ < / a > < / span > OSTestThreadCancel()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSTestThreadCancel < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Check to see if the current thread should be cancelled or suspended. < / p >
2016-01-07 20:25:33 +01:00
< p > This is implicitly called in:< / p > < ul >
< li > OSLockMutex< / li >
< li > OSTryLockMutex< / li >
< li > OSUnlockMutex< / li >
< li > OSAcquireSpinLock< / li >
< li > OSTryAcquireSpinLock< / li >
< li > OSTryAcquireSpinLockWithTimeout< / li >
< li > OSReleaseSpinLock< / li >
< li > OSCancelThread < / li >
< / ul >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga233d3d678de8dcccceb18424e24950b8" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga233d3d678de8dcccceb18424e24950b8" > ◆ < / a > < / span > OSWakeupThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSWakeupThread < / td >
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__threadq.html#structOSThreadQueue" > OSThreadQueue< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > queue< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Wake up all threads in queue. < / p >
2016-01-07 20:25:33 +01:00
< p > Clears the thread queue. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gaabc089f75f232061a8ba1c2f4d3a9169" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gaabc089f75f232061a8ba1c2f4d3a9169" > ◆ < / a > < / span > OSYieldThread()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSYieldThread < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Yield execution to waiting threads with same priority. < / p >
2016-01-07 20:25:33 +01:00
< p > This will never switch to a thread with a lower priority than the current thread. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
2020-03-26 06:49:18 +01:00
< / a > 1.8.17
2016-01-07 17:06:06 +01:00
< / small > < / address >
< / body >
< / html >