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: Condition Variable< / 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 = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
2016-01-07 17:14:21 +01:00
< div class = "title" > Condition Variable< 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:structOSCondition" > < td class = "memItemLeft" align = "right" valign = "top" > struct   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > < / td > < / tr >
< tr class = "separator:structOSCondition" > < 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:ga9d3012d9d937bcd9fcfc12824af9011d" > < td class = "memItemLeft" align = "right" valign = "top" > #define  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#ga9d3012d9d937bcd9fcfc12824af9011d" > OS_CONDITION_TAG< / a >       0x634E6456u< / td > < / tr >
< tr class = "separator:ga9d3012d9d937bcd9fcfc12824af9011d" > < 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:ga00db74c3d6ce5f40511557e92df133eb" > < td class = "memItemLeft" align = "right" valign = "top" > typedef struct < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#ga00db74c3d6ce5f40511557e92df133eb" > OSCondition< / a > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga00db74c3d6ce5f40511557e92df133eb" > < 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__cond.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 >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga3380e1614dffb59637175a508d6f8395" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#ga3380e1614dffb59637175a508d6f8395" > OSInitCond< / a > (< a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *condition)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga3380e1614dffb59637175a508d6f8395" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Initialise a condition variable structure. < a href = "group__coreinit__cond.html#ga3380e1614dffb59637175a508d6f8395" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga3380e1614dffb59637175a508d6f8395" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga3fb5e451c43c561142042258ab65650d" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#ga3fb5e451c43c561142042258ab65650d" > OSInitCondEx< / a > (< a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *condition, const char *name)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga3fb5e451c43c561142042258ab65650d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Initialise a condition variable structure with a name. < a href = "group__coreinit__cond.html#ga3fb5e451c43c561142042258ab65650d" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga3fb5e451c43c561142042258ab65650d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:gab0defea1070e1f129578d98dc023f05d" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#gab0defea1070e1f129578d98dc023f05d" > OSWaitCond< / a > (< a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *condition, < a class = "el" href = "group__coreinit__mutex.html#structOSMutex" > OSMutex< / a > *mutex)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:gab0defea1070e1f129578d98dc023f05d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Sleep the current thread until the condition variable has been signalled. < a href = "group__coreinit__cond.html#gab0defea1070e1f129578d98dc023f05d" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:gab0defea1070e1f129578d98dc023f05d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-07-26 12:52:03 +02:00
< tr class = "memitem:ga4ad088d1be5fd1558263491a65b48984" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "group__coreinit__cond.html#ga4ad088d1be5fd1558263491a65b48984" > OSSignalCond< / a > (< a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *condition)< / td > < / tr >
2020-03-26 06:49:18 +01:00
< tr class = "memdesc:ga4ad088d1be5fd1558263491a65b48984" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Will wake up any threads waiting on the condition with OSWaitCond. < a href = "group__coreinit__cond.html#ga4ad088d1be5fd1558263491a65b48984" > More...< / a > < br / > < / td > < / tr >
2016-01-07 17:06:06 +01:00
< tr class = "separator:ga4ad088d1be5fd1558263491a65b48984" > < 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 > Standard condition variable implementation.< / p >
2016-01-07 20:25:33 +01:00
< p > Similar to < a href = "http://en.cppreference.com/w/cpp/thread/condition_variable" > std::condition_variable< / a > . < / p >
2018-07-26 12:52:03 +02:00
< hr / > < h2 class = "groupheader" > Data Structure Documentation< / h2 >
< a name = "structOSCondition" id = "structOSCondition" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#structOSCondition" > ◆ < / a > < / span > OSCondition< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > struct OSCondition< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< div class = "textblock" >
< p class = "definition" > Definition at line < a class = "el" href = "condition_8h_source.html#l00024" > 24< / a > of file < a class = "el" href = "condition_8h_source.html" > condition.h< / a > .< / p >
< / div > < table class = "fieldtable" >
< tr > < th colspan = "3" > Data Fields< / th > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a1c50fcd1195659821729f52af8f3bb7d" > < / a > uint32_t< / td >
< td class = "fieldname" >
tag< / td >
< td class = "fielddoc" >
Should always be set to the value OS_CONDITION_TAG. < / td > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a8f8f80d37794cde9472343e4487ba3eb" > < / a > const char *< / td >
< td class = "fieldname" >
name< / td >
< td class = "fielddoc" >
Name set by OSInitCondEx. < / td > < / tr >
< tr > < td class = "fieldtype" >
< a id = "a4c72ffd2d6a41665aa8203649acbb46d" > < / a > < a class = "el" href = "group__coreinit__threadq.html#structOSThreadQueue" > OSThreadQueue< / a > < / td >
< td class = "fieldname" >
queue< / td >
< td class = "fielddoc" >
Queue of threads currently waiting on condition with OSWaitCond. < / td > < / tr >
< / table >
< / div >
< / div >
2016-01-07 17:06:06 +01:00
< h2 class = "groupheader" > Macro Definition Documentation< / h2 >
2018-07-26 12:52:03 +02:00
< a id = "ga9d3012d9d937bcd9fcfc12824af9011d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga9d3012d9d937bcd9fcfc12824af9011d" > ◆ < / a > < / span > OS_CONDITION_TAG< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > #define OS_CONDITION_TAG      0x634E6456u< / 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 = "condition_8h_source.html#l00022" > 22< / a > of file < a class = "el" href = "condition_8h_source.html" > condition.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
< h2 class = "groupheader" > Typedef Documentation< / h2 >
2018-07-26 12:52:03 +02:00
< a id = "ga00db74c3d6ce5f40511557e92df133eb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga00db74c3d6ce5f40511557e92df133eb" > ◆ < / a > < / span > OSCondition< / 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__cond.html#structOSCondition" > OSCondition< / a > < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / 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 = "condition_8h_source.html#l00019" > 19< / a > of file < a class = "el" href = "condition_8h_source.html" > condition.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 = "condition_8h_source.html#l00020" > 20< / a > of file < a class = "el" href = "condition_8h_source.html" > condition.h< / a > .< / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
< h2 class = "groupheader" > Function Documentation< / h2 >
2018-07-26 12:52:03 +02:00
< a id = "ga3380e1614dffb59637175a508d6f8395" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga3380e1614dffb59637175a508d6f8395" > ◆ < / a > < / span > OSInitCond()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSInitCond < / td >
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > condition< / 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 > Initialise a condition variable structure. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga3fb5e451c43c561142042258ab65650d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga3fb5e451c43c561142042258ab65650d" > ◆ < / a > < / span > OSInitCondEx()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSInitCondEx < / td >
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > condition< / 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 > Initialise a condition variable structure with a name. < / p >
2016-01-07 17:06:06 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "gab0defea1070e1f129578d98dc023f05d" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#gab0defea1070e1f129578d98dc023f05d" > ◆ < / a > < / span > OSWaitCond()< / h2 >
2016-01-07 17:06:06 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSWaitCond < / td >
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > condition< / 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__mutex.html#structOSMutex" > OSMutex< / a > *  < / td >
2016-01-07 17:06:06 +01:00
< td class = "paramname" > < em > mutex< / 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 > Sleep the current thread until the condition variable has been signalled. < / p >
2016-01-07 20:25:33 +01:00
< p > The mutex must be locked when entering this function. Will unlock the mutex and then sleep, reacquiring the mutex when woken.< / p >
< p > Similar to < a href = "http://en.cppreference.com/w/cpp/thread/condition_variable/wait" > std::condition_variable::wait< / a > . < / p >
2016-01-07 17:06:06 +01:00
2016-01-11 02:17:32 +01:00
< / div >
< / div >
2018-07-26 12:52:03 +02:00
< a id = "ga4ad088d1be5fd1558263491a65b48984" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ga4ad088d1be5fd1558263491a65b48984" > ◆ < / a > < / span > OSSignalCond()< / h2 >
2016-01-11 02:17:32 +01:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void OSSignalCond < / td >
< td > (< / td >
2018-07-26 12:52:03 +02:00
< td class = "paramtype" > < a class = "el" href = "group__coreinit__cond.html#structOSCondition" > OSCondition< / a > *  < / td >
2016-01-11 02:17:32 +01:00
< td class = "paramname" > < em > condition< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2018-07-26 12:52:03 +02:00
< p > Will wake up any threads waiting on the condition with OSWaitCond. < / p >
2016-01-11 02:17:32 +01:00
< p > Similar to < a href = "http://en.cppreference.com/w/cpp/thread/condition_variable/notify_all" > std::condition_variable::notify_all< / a > . < / 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 >