mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
152 lines
17 KiB
HTML
152 lines
17 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.17"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>wut: /home/ash/Code/wut2/include/coreinit/spinlock.h Source File</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>
|
|
<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
|
|
 <span id="projectnumber">1.0.0-beta9</span>
|
|
</div>
|
|
<div id="projectbrief">Wii U Toolchain</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.17 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
/* @license-end */
|
|
</script>
|
|
<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>
|
|
<!-- 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 id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_5050f3de292bd66075be80c4b119f1df.html">coreinit</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">spinlock.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="spinlock_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#include <<a class="code" href="wut_8h.html">wut.h</a>></span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include "<a class="code" href="time_8h.html">time.h</a>"</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9"> 15</a></span> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> <a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a>;</div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  </div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="group__coreinit__spinlock.html#ga46ab60649e9e54d32f6058bed6df94ca"> 17</a></span> <span class="keyword">struct </span><a class="code" href="group__coreinit__spinlock.html#ga46ab60649e9e54d32f6058bed6df94ca">WUT_ALIGNAS</a>(16) <a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  uint32_t owner;</div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  WUT_UNKNOWN_BYTES(0x4);</div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  uint32_t recursion;</div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>  WUT_UNKNOWN_BYTES(0x4);</div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> };</div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> WUT_CHECK_OFFSET(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a>, 0x0, owner);</div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> WUT_CHECK_OFFSET(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a>, 0x8, recursion);</div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> WUT_CHECK_SIZE(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a>, 0x10);</div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  </div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="keywordtype">void</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <a class="code" href="group__coreinit__spinlock.html#ga6ebe9d5b1b3a82307f98dadce4433c31">OSInitSpinLock</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <a class="code" href="group__coreinit__spinlock.html#ga50aaa96b3d9e1cd8a0397ba626da89fe">OSAcquireSpinLock</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <a class="code" href="group__coreinit__spinlock.html#ga70ce81a491f3bd8160691f400c8e97a3">OSTryAcquireSpinLock</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  </div>
|
|
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <a class="code" href="group__coreinit__spinlock.html#ga944e03c9a96887f0883d75a2a2d28e96">OSTryAcquireSpinLockWithTimeout</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock,</div>
|
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a> timeout);</div>
|
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
|
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <a class="code" href="group__coreinit__spinlock.html#gae4a86cb173962b14be56047718298bb7">OSReleaseSpinLock</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  </div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <a class="code" href="group__coreinit__spinlock.html#ga79b3b669d228cf5ee242456da27e101c">OSUninterruptibleSpinLock_Acquire</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  </div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <a class="code" href="group__coreinit__spinlock.html#gaa32c5717b802079a55afa1435003f410">OSUninterruptibleSpinLock_TryAcquire</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  </div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <a class="code" href="group__coreinit__spinlock.html#gaae2cd618076e2f5b5ce83d44a91e0f03">OSUninterruptibleSpinLock_TryAcquireWithTimeout</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock,</div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <a class="code" href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a> timeout);</div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  </div>
|
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <a class="code" href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div>
|
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> <a class="code" href="group__coreinit__spinlock.html#gaab22a9a511ed2662965c25a14fcf2c34">OSUninterruptibleSpinLock_Release</a>(<a class="code" href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a> *spinlock);</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  </div>
|
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#ifdef __cplusplus</span></div>
|
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> }</div>
|
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  </div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<div class="ttc" id="agroup__coreinit__time_html_ga4d4f771188f6c29e758ed6b3b8347b4d"><div class="ttname"><a href="group__coreinit__time.html#ga4d4f771188f6c29e758ed6b3b8347b4d">OSTime</a></div><div class="ttdeci">int64_t OSTime</div><div class="ttdef"><b>Definition:</b> <a href="time_8h_source.html#l00018">time.h:18</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_ga6ebe9d5b1b3a82307f98dadce4433c31"><div class="ttname"><a href="group__coreinit__spinlock.html#ga6ebe9d5b1b3a82307f98dadce4433c31">OSInitSpinLock</a></div><div class="ttdeci">void OSInitSpinLock(OSSpinLock *spinlock)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_gae8be4af7c8a7c9932e945f98e8a6b3e9"><div class="ttname"><a href="group__coreinit__spinlock.html#gae8be4af7c8a7c9932e945f98e8a6b3e9">OSSpinLock</a></div><div class="ttdeci">struct OSSpinLock OSSpinLock</div><div class="ttdef"><b>Definition:</b> <a href="spinlock_8h_source.html#l00015">spinlock.h:15</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_gaab22a9a511ed2662965c25a14fcf2c34"><div class="ttname"><a href="group__coreinit__spinlock.html#gaab22a9a511ed2662965c25a14fcf2c34">OSUninterruptibleSpinLock_Release</a></div><div class="ttdeci">BOOL OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_ga50aaa96b3d9e1cd8a0397ba626da89fe"><div class="ttname"><a href="group__coreinit__spinlock.html#ga50aaa96b3d9e1cd8a0397ba626da89fe">OSAcquireSpinLock</a></div><div class="ttdeci">BOOL OSAcquireSpinLock(OSSpinLock *spinlock)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_ga70ce81a491f3bd8160691f400c8e97a3"><div class="ttname"><a href="group__coreinit__spinlock.html#ga70ce81a491f3bd8160691f400c8e97a3">OSTryAcquireSpinLock</a></div><div class="ttdeci">BOOL OSTryAcquireSpinLock(OSSpinLock *spinlock)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_ga79b3b669d228cf5ee242456da27e101c"><div class="ttname"><a href="group__coreinit__spinlock.html#ga79b3b669d228cf5ee242456da27e101c">OSUninterruptibleSpinLock_Acquire</a></div><div class="ttdeci">BOOL OSUninterruptibleSpinLock_Acquire(OSSpinLock *spinlock)</div></div>
|
|
<div class="ttc" id="awut_8h_html"><div class="ttname"><a href="wut_8h.html">wut.h</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_ga46ab60649e9e54d32f6058bed6df94ca"><div class="ttname"><a href="group__coreinit__spinlock.html#ga46ab60649e9e54d32f6058bed6df94ca">WUT_ALIGNAS</a></div><div class="ttdeci">struct WUT_ALIGNAS(16) OSSpinLock</div><div class="ttdef"><b>Definition:</b> <a href="spinlock_8h_source.html#l00017">spinlock.h:17</a></div></div>
|
|
<div class="ttc" id="atime_8h_html"><div class="ttname"><a href="time_8h.html">time.h</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_ga944e03c9a96887f0883d75a2a2d28e96"><div class="ttname"><a href="group__coreinit__spinlock.html#ga944e03c9a96887f0883d75a2a2d28e96">OSTryAcquireSpinLockWithTimeout</a></div><div class="ttdeci">BOOL OSTryAcquireSpinLockWithTimeout(OSSpinLock *spinlock, OSTime timeout)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_gaae2cd618076e2f5b5ce83d44a91e0f03"><div class="ttname"><a href="group__coreinit__spinlock.html#gaae2cd618076e2f5b5ce83d44a91e0f03">OSUninterruptibleSpinLock_TryAcquireWithTimeout</a></div><div class="ttdeci">BOOL OSUninterruptibleSpinLock_TryAcquireWithTimeout(OSSpinLock *spinlock, OSTime timeout)</div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_gae4a86cb173962b14be56047718298bb7"><div class="ttname"><a href="group__coreinit__spinlock.html#gae4a86cb173962b14be56047718298bb7">OSReleaseSpinLock</a></div><div class="ttdeci">BOOL OSReleaseSpinLock(OSSpinLock *spinlock)</div></div>
|
|
<div class="ttc" id="awut__types_8h_html_a975dbe9e4396bf9e0064ce01827fa372"><div class="ttname"><a href="wut__types_8h.html#a975dbe9e4396bf9e0064ce01827fa372">BOOL</a></div><div class="ttdeci">int32_t BOOL</div><div class="ttdef"><b>Definition:</b> <a href="wut__types_8h_source.html#l00004">wut_types.h:4</a></div></div>
|
|
<div class="ttc" id="agroup__coreinit__spinlock_html_gaa32c5717b802079a55afa1435003f410"><div class="ttname"><a href="group__coreinit__spinlock.html#gaa32c5717b802079a55afa1435003f410">OSUninterruptibleSpinLock_TryAcquire</a></div><div class="ttdeci">BOOL OSUninterruptibleSpinLock_TryAcquire(OSSpinLock *spinlock)</div></div>
|
|
<!-- 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"/>
|
|
</a> 1.8.17
|
|
</small></address>
|
|
</body>
|
|
</html>
|