wut/struct_o_s_thread.html
2016-01-08 17:00:17 +00:00

644 lines
36 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>WUT: OSThread Struct Reference</title>
<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>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</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;">
<div id="projectname">WUT
&#160;<span id="projectnumber">0.1</span>
</div>
<div id="projectbrief">Wii U Toolchain</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
<li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
<li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
</ul>
</div>
<!-- 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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-attribs">Data Fields</a> </div>
<div class="headertitle">
<div class="title">OSThread Struct Reference<div class="ingroups"><a class="el" href="group__coreinit.html">coreinit</a> &raquo; <a class="el" href="group__coreinit__thread.html">Thread</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="thread_8h_source.html">thread.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ab690e765a841a6d0748e1d5e7146b093"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_context.html">OSContext</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ab690e765a841a6d0748e1d5e7146b093">context</a></td></tr>
<tr class="separator:ab690e765a841a6d0748e1d5e7146b093"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c50fcd1195659821729f52af8f3bb7d"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a1c50fcd1195659821729f52af8f3bb7d">tag</a></td></tr>
<tr class="memdesc:a1c50fcd1195659821729f52af8f3bb7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Should always be set to the value OS_THREAD_TAG. <a href="#a1c50fcd1195659821729f52af8f3bb7d">More...</a><br /></td></tr>
<tr class="separator:a1c50fcd1195659821729f52af8f3bb7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18fc1c8e9296f17ef97a86147387d8b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__thread.html#ga1c33fd51f40dec4bfff9d98992c7e2cc">OSThreadState</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a18fc1c8e9296f17ef97a86147387d8b4">state</a></td></tr>
<tr class="memdesc:a18fc1c8e9296f17ef97a86147387d8b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bitfield of OS_THREAD_STATE. <a href="#a18fc1c8e9296f17ef97a86147387d8b4">More...</a><br /></td></tr>
<tr class="separator:a18fc1c8e9296f17ef97a86147387d8b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a153ded885759fdfe2b26d53afbbba830"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a">OSThreadAttributes</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a153ded885759fdfe2b26d53afbbba830">attr</a></td></tr>
<tr class="memdesc:a153ded885759fdfe2b26d53afbbba830"><td class="mdescLeft">&#160;</td><td class="mdescRight">Bitfield of OS_THREAD_ATTRIB. <a href="#a153ded885759fdfe2b26d53afbbba830">More...</a><br /></td></tr>
<tr class="separator:a153ded885759fdfe2b26d53afbbba830"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fc3a0c58dfbd1e68224521185cb9384"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a4fc3a0c58dfbd1e68224521185cb9384">id</a></td></tr>
<tr class="memdesc:a4fc3a0c58dfbd1e68224521185cb9384"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unique thread ID. <a href="#a4fc3a0c58dfbd1e68224521185cb9384">More...</a><br /></td></tr>
<tr class="separator:a4fc3a0c58dfbd1e68224521185cb9384"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf662d124c8c0e60275f632c06d97dd1"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#abf662d124c8c0e60275f632c06d97dd1">suspendCounter</a></td></tr>
<tr class="memdesc:abf662d124c8c0e60275f632c06d97dd1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Suspend count (increased by OSSuspendThread). <a href="#abf662d124c8c0e60275f632c06d97dd1">More...</a><br /></td></tr>
<tr class="separator:abf662d124c8c0e60275f632c06d97dd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41b7c4ba47c44a632d5903b1f1338ad0"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a41b7c4ba47c44a632d5903b1f1338ad0">priority</a></td></tr>
<tr class="memdesc:a41b7c4ba47c44a632d5903b1f1338ad0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Actual priority of thread. <a href="#a41b7c4ba47c44a632d5903b1f1338ad0">More...</a><br /></td></tr>
<tr class="separator:a41b7c4ba47c44a632d5903b1f1338ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a68a5710d475b823ee9efb0396cdf49"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a6a68a5710d475b823ee9efb0396cdf49">basePriority</a></td></tr>
<tr class="memdesc:a6a68a5710d475b823ee9efb0396cdf49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Base priority of thread, 0 is highest priority, 31 is lowest priority. <a href="#a6a68a5710d475b823ee9efb0396cdf49">More...</a><br /></td></tr>
<tr class="separator:a6a68a5710d475b823ee9efb0396cdf49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3b846817f872aed4903032f00d16246"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ab3b846817f872aed4903032f00d16246">exitValue</a></td></tr>
<tr class="memdesc:ab3b846817f872aed4903032f00d16246"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exit value. <a href="#ab3b846817f872aed4903032f00d16246">More...</a><br /></td></tr>
<tr class="separator:ab3b846817f872aed4903032f00d16246"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab426d2b1b54499adfbda3a7922e69ff0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_thread_queue.html">OSThreadQueue</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ab426d2b1b54499adfbda3a7922e69ff0">queue</a></td></tr>
<tr class="memdesc:ab426d2b1b54499adfbda3a7922e69ff0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queue the thread is currently waiting on. <a href="#ab426d2b1b54499adfbda3a7922e69ff0">More...</a><br /></td></tr>
<tr class="separator:ab426d2b1b54499adfbda3a7922e69ff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7a13b9b9c0c4a91fd90af02e7ea7771"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_thread_link.html">OSThreadLink</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#af7a13b9b9c0c4a91fd90af02e7ea7771">link</a></td></tr>
<tr class="memdesc:af7a13b9b9c0c4a91fd90af02e7ea7771"><td class="mdescLeft">&#160;</td><td class="mdescRight">Link used for thread queue. <a href="#af7a13b9b9c0c4a91fd90af02e7ea7771">More...</a><br /></td></tr>
<tr class="separator:af7a13b9b9c0c4a91fd90af02e7ea7771"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae12b5a541aff405df56ed7abfa97e3b4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_thread_queue.html">OSThreadQueue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ae12b5a541aff405df56ed7abfa97e3b4">joinQueue</a></td></tr>
<tr class="memdesc:ae12b5a541aff405df56ed7abfa97e3b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queue of threads waiting to join this thread. <a href="#ae12b5a541aff405df56ed7abfa97e3b4">More...</a><br /></td></tr>
<tr class="separator:ae12b5a541aff405df56ed7abfa97e3b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f0e11d3f286a61d3ed336429d317abf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_mutex.html">OSMutex</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a8f0e11d3f286a61d3ed336429d317abf">mutex</a></td></tr>
<tr class="memdesc:a8f0e11d3f286a61d3ed336429d317abf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Mutex this thread is waiting to lock. <a href="#a8f0e11d3f286a61d3ed336429d317abf">More...</a><br /></td></tr>
<tr class="separator:a8f0e11d3f286a61d3ed336429d317abf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a546bbd037b80cd528453546cf0a341"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_mutex_queue.html">OSMutexQueue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a1a546bbd037b80cd528453546cf0a341">mutexQueue</a></td></tr>
<tr class="memdesc:a1a546bbd037b80cd528453546cf0a341"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queue of mutexes this thread owns. <a href="#a1a546bbd037b80cd528453546cf0a341">More...</a><br /></td></tr>
<tr class="separator:a1a546bbd037b80cd528453546cf0a341"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01d3b93eba14965d9aba07081986d663"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_thread_link.html">OSThreadLink</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a01d3b93eba14965d9aba07081986d663">activeLink</a></td></tr>
<tr class="memdesc:a01d3b93eba14965d9aba07081986d663"><td class="mdescLeft">&#160;</td><td class="mdescRight">Link for global active thread queue. <a href="#a01d3b93eba14965d9aba07081986d663">More...</a><br /></td></tr>
<tr class="separator:a01d3b93eba14965d9aba07081986d663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbe2c909215dcda5e24aabd7dd5995de"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#acbe2c909215dcda5e24aabd7dd5995de">stackStart</a></td></tr>
<tr class="memdesc:acbe2c909215dcda5e24aabd7dd5995de"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stack start (top, highest address) <a href="#acbe2c909215dcda5e24aabd7dd5995de">More...</a><br /></td></tr>
<tr class="separator:acbe2c909215dcda5e24aabd7dd5995de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcde11463f0a6ad5922e39525ec03c7e"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#afcde11463f0a6ad5922e39525ec03c7e">stackEnd</a></td></tr>
<tr class="memdesc:afcde11463f0a6ad5922e39525ec03c7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stack end (bottom, lowest address) <a href="#afcde11463f0a6ad5922e39525ec03c7e">More...</a><br /></td></tr>
<tr class="separator:afcde11463f0a6ad5922e39525ec03c7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b1f5074d3ad451216e44edd1b73bc1d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9">OSThreadEntryPointFn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a5b1f5074d3ad451216e44edd1b73bc1d">entryPoint</a></td></tr>
<tr class="memdesc:a5b1f5074d3ad451216e44edd1b73bc1d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thread entry point. <a href="#a5b1f5074d3ad451216e44edd1b73bc1d">More...</a><br /></td></tr>
<tr class="separator:a5b1f5074d3ad451216e44edd1b73bc1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9fe2bd7981969cd8071bcc5e4aeb40b"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ac9fe2bd7981969cd8071bcc5e4aeb40b">specific</a> [0x10]</td></tr>
<tr class="memdesc:ac9fe2bd7981969cd8071bcc5e4aeb40b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific. <a href="#ac9fe2bd7981969cd8071bcc5e4aeb40b">More...</a><br /></td></tr>
<tr class="separator:ac9fe2bd7981969cd8071bcc5e4aeb40b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f8f80d37794cde9472343e4487ba3eb"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a8f8f80d37794cde9472343e4487ba3eb">name</a></td></tr>
<tr class="memdesc:a8f8f80d37794cde9472343e4487ba3eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Thread name, accessed with OSSetThreadName and OSGetThreadName. <a href="#a8f8f80d37794cde9472343e4487ba3eb">More...</a><br /></td></tr>
<tr class="separator:a8f8f80d37794cde9472343e4487ba3eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a234a19eb0790f50fe6be08397cbafd46"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a234a19eb0790f50fe6be08397cbafd46">userStackPointer</a></td></tr>
<tr class="memdesc:a234a19eb0790f50fe6be08397cbafd46"><td class="mdescLeft">&#160;</td><td class="mdescRight">The stack pointer passed in OSCreateThread. <a href="#a234a19eb0790f50fe6be08397cbafd46">More...</a><br /></td></tr>
<tr class="separator:a234a19eb0790f50fe6be08397cbafd46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace4c76a6af356088cb17b29968e3fc7d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a">OSThreadCleanupCallbackFn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ace4c76a6af356088cb17b29968e3fc7d">cleanupCallback</a></td></tr>
<tr class="memdesc:ace4c76a6af356088cb17b29968e3fc7d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called just before thread is terminated, set with OSSetThreadCleanupCallback. <a href="#ace4c76a6af356088cb17b29968e3fc7d">More...</a><br /></td></tr>
<tr class="separator:ace4c76a6af356088cb17b29968e3fc7d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a9241292d04c9c6fe64a140aff3665"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422">OSThreadDeallocatorFn</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a26a9241292d04c9c6fe64a140aff3665">deallocator</a></td></tr>
<tr class="memdesc:a26a9241292d04c9c6fe64a140aff3665"><td class="mdescLeft">&#160;</td><td class="mdescRight">Called just after a thread is terminated, set with OSSetThreadDeallocator. <a href="#a26a9241292d04c9c6fe64a140aff3665">More...</a><br /></td></tr>
<tr class="separator:a26a9241292d04c9c6fe64a140aff3665"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf5c9c6f6be9a468c705d9f3c39f6904"><td class="memItemLeft" align="right" valign="top"><a class="el" href="wut__types_8h.html#a050c65e107f0c828f856a231f4b4e788">BOOL</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#aaf5c9c6f6be9a468c705d9f3c39f6904">cancelState</a></td></tr>
<tr class="memdesc:aaf5c9c6f6be9a468c705d9f3c39f6904"><td class="mdescLeft">&#160;</td><td class="mdescRight">If TRUE then a thread can be cancelled or suspended, set with OSSetThreadCancelState. <a href="#aaf5c9c6f6be9a468c705d9f3c39f6904">More...</a><br /></td></tr>
<tr class="separator:aaf5c9c6f6be9a468c705d9f3c39f6904"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ec25c03ad5e1dc83c7f66950ce6e4ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__coreinit__thread.html#ga2b4866b3e51f4690fd197462d2cdebe7">OSThreadRequest</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a9ec25c03ad5e1dc83c7f66950ce6e4ff">requestFlag</a></td></tr>
<tr class="memdesc:a9ec25c03ad5e1dc83c7f66950ce6e4ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Current thread request, used for cancelleing and suspending the thread. <a href="#a9ec25c03ad5e1dc83c7f66950ce6e4ff">More...</a><br /></td></tr>
<tr class="separator:a9ec25c03ad5e1dc83c7f66950ce6e4ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37e895fcd32c37e6a2962a948296bf64"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#a37e895fcd32c37e6a2962a948296bf64">needSuspend</a></td></tr>
<tr class="memdesc:a37e895fcd32c37e6a2962a948296bf64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pending suspend request count. <a href="#a37e895fcd32c37e6a2962a948296bf64">More...</a><br /></td></tr>
<tr class="separator:a37e895fcd32c37e6a2962a948296bf64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4c316e77fc64758b15a09a6b5756bb1"><td class="memItemLeft" align="right" valign="top">int32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ac4c316e77fc64758b15a09a6b5756bb1">suspendResult</a></td></tr>
<tr class="memdesc:ac4c316e77fc64758b15a09a6b5756bb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Result of thread suspend. <a href="#ac4c316e77fc64758b15a09a6b5756bb1">More...</a><br /></td></tr>
<tr class="separator:ac4c316e77fc64758b15a09a6b5756bb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac466ad7864ccba783b664db7b8853b71"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_o_s_thread_queue.html">OSThreadQueue</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_o_s_thread.html#ac466ad7864ccba783b664db7b8853b71">suspendQueue</a></td></tr>
<tr class="memdesc:ac466ad7864ccba783b664db7b8853b71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Queue of threads waiting for a thread to be suspended. <a href="#ac466ad7864ccba783b664db7b8853b71">More...</a><br /></td></tr>
<tr class="separator:ac466ad7864ccba783b664db7b8853b71"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="thread_8h_source.html#l00176">176</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div><h2 class="groupheader">Field Documentation</h2>
<a class="anchor" id="a01d3b93eba14965d9aba07081986d663"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_thread_link.html">OSThreadLink</a> activeLink</td>
</tr>
</table>
</div><div class="memdoc">
<p>Link for global active thread queue. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00222">222</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a153ded885759fdfe2b26d53afbbba830"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__thread.html#ga47c38b62e66b6163f6b080a35830897a">OSThreadAttributes</a> attr</td>
</tr>
</table>
</div><div class="memdoc">
<p>Bitfield of OS_THREAD_ATTRIB. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00187">187</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a6a68a5710d475b823ee9efb0396cdf49"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t basePriority</td>
</tr>
</table>
</div><div class="memdoc">
<p>Base priority of thread, 0 is highest priority, 31 is lowest priority. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00199">199</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="aaf5c9c6f6be9a468c705d9f3c39f6904"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="wut__types_8h.html#a050c65e107f0c828f856a231f4b4e788">BOOL</a> cancelState</td>
</tr>
</table>
</div><div class="memdoc">
<p>If TRUE then a thread can be cancelled or suspended, set with OSSetThreadCancelState. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00255">255</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ace4c76a6af356088cb17b29968e3fc7d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__thread.html#ga729a75fba87a2740d7af69aa8978ea5a">OSThreadCleanupCallbackFn</a> cleanupCallback</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called just before thread is terminated, set with OSSetThreadCleanupCallback. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00249">249</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab690e765a841a6d0748e1d5e7146b093"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_context.html">OSContext</a> context</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="thread_8h_source.html#l00178">178</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a26a9241292d04c9c6fe64a140aff3665"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__thread.html#gac8fa3d74d8d161709d327e38eb426422">OSThreadDeallocatorFn</a> deallocator</td>
</tr>
</table>
</div><div class="memdoc">
<p>Called just after a thread is terminated, set with OSSetThreadDeallocator. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00252">252</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a5b1f5074d3ad451216e44edd1b73bc1d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__thread.html#gab5cdc96dcec643891f88be54830acae9">OSThreadEntryPointFn</a> entryPoint</td>
</tr>
</table>
</div><div class="memdoc">
<p>Thread entry point. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00231">231</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab3b846817f872aed4903032f00d16246"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t exitValue</td>
</tr>
</table>
</div><div class="memdoc">
<p>Exit value. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00202">202</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a4fc3a0c58dfbd1e68224521185cb9384"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint16_t id</td>
</tr>
</table>
</div><div class="memdoc">
<p>Unique thread ID. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00190">190</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ae12b5a541aff405df56ed7abfa97e3b4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_thread_queue.html">OSThreadQueue</a> joinQueue</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queue of threads waiting to join this thread. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00213">213</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="af7a13b9b9c0c4a91fd90af02e7ea7771"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_thread_link.html">OSThreadLink</a> link</td>
</tr>
</table>
</div><div class="memdoc">
<p>Link used for thread queue. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00210">210</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a8f0e11d3f286a61d3ed336429d317abf"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_mutex.html">OSMutex</a>* mutex</td>
</tr>
</table>
</div><div class="memdoc">
<p>Mutex this thread is waiting to lock. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00216">216</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1a546bbd037b80cd528453546cf0a341"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_mutex_queue.html">OSMutexQueue</a> mutexQueue</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queue of mutexes this thread owns. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00219">219</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a8f8f80d37794cde9472343e4487ba3eb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const char* name</td>
</tr>
</table>
</div><div class="memdoc">
<p>Thread name, accessed with OSSetThreadName and OSGetThreadName. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00241">241</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a37e895fcd32c37e6a2962a948296bf64"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t needSuspend</td>
</tr>
</table>
</div><div class="memdoc">
<p>Pending suspend request count. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00261">261</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a41b7c4ba47c44a632d5903b1f1338ad0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t priority</td>
</tr>
</table>
</div><div class="memdoc">
<p>Actual priority of thread. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00196">196</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ab426d2b1b54499adfbda3a7922e69ff0"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_thread_queue.html">OSThreadQueue</a>* queue</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queue the thread is currently waiting on. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00207">207</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a9ec25c03ad5e1dc83c7f66950ce6e4ff"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__thread.html#ga2b4866b3e51f4690fd197462d2cdebe7">OSThreadRequest</a> requestFlag</td>
</tr>
</table>
</div><div class="memdoc">
<p>Current thread request, used for cancelleing and suspending the thread. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00258">258</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac9fe2bd7981969cd8071bcc5e4aeb40b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t specific[0x10]</td>
</tr>
</table>
</div><div class="memdoc">
<p>Thread specific values, accessed with OSSetThreadSpecific and OSGetThreadSpecific. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00236">236</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="afcde11463f0a6ad5922e39525ec03c7e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* stackEnd</td>
</tr>
</table>
</div><div class="memdoc">
<p>Stack end (bottom, lowest address) </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00228">228</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="acbe2c909215dcda5e24aabd7dd5995de"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* stackStart</td>
</tr>
</table>
</div><div class="memdoc">
<p>Stack start (top, highest address) </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00225">225</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a18fc1c8e9296f17ef97a86147387d8b4"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="group__coreinit__thread.html#ga1c33fd51f40dec4bfff9d98992c7e2cc">OSThreadState</a> state</td>
</tr>
</table>
</div><div class="memdoc">
<p>Bitfield of OS_THREAD_STATE. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00184">184</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="abf662d124c8c0e60275f632c06d97dd1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t suspendCounter</td>
</tr>
</table>
</div><div class="memdoc">
<p>Suspend count (increased by OSSuspendThread). </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00193">193</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac466ad7864ccba783b664db7b8853b71"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="struct_o_s_thread_queue.html">OSThreadQueue</a> suspendQueue</td>
</tr>
</table>
</div><div class="memdoc">
<p>Queue of threads waiting for a thread to be suspended. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00267">267</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="ac4c316e77fc64758b15a09a6b5756bb1"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int32_t suspendResult</td>
</tr>
</table>
</div><div class="memdoc">
<p>Result of thread suspend. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00264">264</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a1c50fcd1195659821729f52af8f3bb7d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t tag</td>
</tr>
</table>
</div><div class="memdoc">
<p>Should always be set to the value OS_THREAD_TAG. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00181">181</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<a class="anchor" id="a234a19eb0790f50fe6be08397cbafd46"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void* userStackPointer</td>
</tr>
</table>
</div><div class="memdoc">
<p>The stack pointer passed in OSCreateThread. </p>
<p>Definition at line <a class="el" href="thread_8h_source.html#l00246">246</a> of file <a class="el" href="thread_8h_source.html">thread.h</a>.</p>
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>D:/Programming/Projects/wut/include/coreinit/<a class="el" href="thread_8h_source.html">thread.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.10
</small></address>
</body>
</html>