Newer
Older
ubixos / doc / html / d5 / d9a / ubthread_8c.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.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: kernel/ubthread.c File 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="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</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">UbixOS
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<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&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d5/d9a/ubthread_8c.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">ubthread.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../dd/d1b/ubthread_8h_source.html">ubixos/ubthread.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../df/d37/exec_8h_source.html">ubixos/exec.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d7/d00/sched_8h_source.html">ubixos/sched.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../de/df7/time_8h_source.html">ubixos/time.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../df/d63/spinlock_8h_source.html">ubixos/spinlock.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d2/d48/vitals_8h_source.html">ubixos/vitals.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d4/d03/kmalloc_8h_source.html">lib/kmalloc.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d3/d24/kpanic_8h_source.html">ubixos/kpanic.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="../../d6/d07/stdatomic_8h_source.html">sys/stdatomic.h</a>&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for ubthread.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../d8/de2/ubthread_8c__incl.png" border="0" usemap="#kernel_2ubthread_8c" alt=""/></div>
<map name="kernel_2ubthread_8c" id="kernel_2ubthread_8c">
<area shape="rect" title=" " alt="" coords="692,5,815,32"/>
<area shape="rect" href="../../dd/d1b/ubthread_8h.html" title=" " alt="" coords="213,453,339,480"/>
<area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="485,528,595,555"/>
<area shape="rect" href="../../de/df7/time_8h.html" title=" " alt="" coords="163,528,263,555"/>
<area shape="rect" href="../../df/d37/exec_8h.html" title=" " alt="" coords="482,453,585,480"/>
<area shape="rect" href="../../df/d63/spinlock_8h.html" title=" " alt="" coords="233,155,356,181"/>
<area shape="rect" href="../../d2/d48/vitals_8h.html" title=" " alt="" coords="851,80,955,107"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="1917,827,2003,853"/>
<area shape="rect" href="../../d3/d24/kpanic_8h.html" title=" " alt="" coords="1627,827,1741,853"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html" title=" " alt="" coords="1859,229,1954,256"/>
<area shape="rect" href="../../d6/d07/stdatomic_8h.html" title=" " alt="" coords="1104,976,1219,1003"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="768,901,859,928"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="765,1125,862,1152"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="767,976,860,1003"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="939,1051,1029,1077"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="491,1051,610,1077"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="634,1051,739,1077"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="763,1051,863,1077"/>
<area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="865,603,933,629"/>
<area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="582,677,677,704"/>
<area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="389,603,480,629"/>
<area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="505,603,581,629"/>
<area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="1021,827,1144,853"/>
<area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="1041,677,1124,704"/>
<area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="915,752,986,779"/>
<area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="701,677,789,704"/>
<area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="592,752,672,779"/>
<area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="747,752,839,779"/>
<area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="399,901,507,928"/>
<area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="592,827,675,853"/>
<area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="1352,752,1451,779"/>
<area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="1112,752,1200,779"/>
<area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="1225,752,1327,779"/>
<area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="902,827,997,853"/>
<area shape="rect" href="../../dc/dac/io_8h.html" title=" " alt="" coords="145,603,213,629"/>
<area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="935,155,1001,181"/>
<area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="812,528,959,555"/>
<area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="1179,229,1253,256"/>
<area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="1363,304,1442,331"/>
<area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="1438,603,1511,629"/>
<area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="1483,528,1554,555"/>
<area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="1538,379,1635,405"/>
<area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="1629,528,1701,555"/>
<area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="1331,453,1410,480"/>
<area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="1230,379,1314,405"/>
<area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="1331,677,1434,704"/>
<area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="1459,677,1549,704"/>
<area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="1589,752,1669,779"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="1925,901,1995,928"/>
<area shape="rect" href="../../d1/da8/ip4__addr_8h.html" title=" " alt="" coords="1536,453,1640,480"/>
</map>
</div>
</div>
<p><a href="../../d5/d9a/ubthread_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aeb2f756a095ecfddad31354f819623ee"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#aeb2f756a095ecfddad31354f819623ee">ubthread_cond_broadcast</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *cond)</td></tr>
<tr class="separator:aeb2f756a095ecfddad31354f819623ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae914fae69538736dc5e494c15ce93a17"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#ae914fae69538736dc5e494c15ce93a17">ubthread_cond_destroy</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *cond)</td></tr>
<tr class="separator:ae914fae69538736dc5e494c15ce93a17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a57168ab258d780168b7334a387651133"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a57168ab258d780168b7334a387651133">ubthread_cond_init</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *cond, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> attr)</td></tr>
<tr class="separator:a57168ab258d780168b7334a387651133"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64fb8f5f2da2564a6cae8c9f2c3bde10"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a64fb8f5f2da2564a6cae8c9f2c3bde10">ubthread_cond_signal</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *cond)</td></tr>
<tr class="separator:a64fb8f5f2da2564a6cae8c9f2c3bde10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a996be9a927447a62f7168a082a046c54"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a996be9a927447a62f7168a082a046c54">ubthread_cond_timedwait</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *cond, <a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *<a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a>, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> struct <a class="el" href="../../da/d1c/structtimespec.html">timespec</a> *abstime)</td></tr>
<tr class="separator:a996be9a927447a62f7168a082a046c54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30eb7c156c2422801ddb86326dbc3d81"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a30eb7c156c2422801ddb86326dbc3d81">ubthread_cond_wait</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *cond, <a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *<a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a>)</td></tr>
<tr class="separator:a30eb7c156c2422801ddb86326dbc3d81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0af177ef44888f3c93883294207328e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#aa0af177ef44888f3c93883294207328e">ubthread_create</a> (<a class="el" href="../../d7/d00/sched_8h.html#a4096d94f76d96bbf005b9bbd45ed4ae1">kTask_t</a> **<a class="el" href="../../d3/dc5/structthread.html">thread</a>, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> *attr, void(*tproc)(void), void *arg)</td></tr>
<tr class="separator:aa0af177ef44888f3c93883294207328e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a278f5d5b1e11b6668b75da6a285442e4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a278f5d5b1e11b6668b75da6a285442e4">ubthread_mutex_destroy</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *<a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a>)</td></tr>
<tr class="separator:a278f5d5b1e11b6668b75da6a285442e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a32f60f4953d8865991ea48cf26236b97"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a32f60f4953d8865991ea48cf26236b97">ubthread_mutex_init</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *<a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a>, <a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a> attr)</td></tr>
<tr class="separator:a32f60f4953d8865991ea48cf26236b97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa13bf141cd3e9bf0921fbf61ffc637d8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#aa13bf141cd3e9bf0921fbf61ffc637d8">ubthread_mutex_lock</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *<a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a>)</td></tr>
<tr class="separator:aa13bf141cd3e9bf0921fbf61ffc637d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afea3530bab360f59c09a49f490d079dd"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#afea3530bab360f59c09a49f490d079dd">ubthread_mutex_unlock</a> (<a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *<a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a>)</td></tr>
<tr class="separator:afea3530bab360f59c09a49f490d079dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72a362bc8127b8d63e1107062638664d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d7/d00/sched_8h.html#a4096d94f76d96bbf005b9bbd45ed4ae1">kTask_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a72a362bc8127b8d63e1107062638664d">ubthread_self</a> ()</td></tr>
<tr class="separator:a72a362bc8127b8d63e1107062638664d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ac90cec8b766ba40fe62cf0d6328da970"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="../../d5/d4a/structubthread__cond__list.html">ubthread_cond_list</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#ac90cec8b766ba40fe62cf0d6328da970">conds</a> = 0x0</td></tr>
<tr class="separator:ac90cec8b766ba40fe62cf0d6328da970"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18b6be9ca0cec4b0643171232d6f10de"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="../../d8/d1f/structubthread__mutex__list.html">ubthread_mutex_list</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d9a/ubthread_8c.html#a18b6be9ca0cec4b0643171232d6f10de">mutex</a> = 0x0</td></tr>
<tr class="separator:a18b6be9ca0cec4b0643171232d6f10de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="aeb2f756a095ecfddad31354f819623ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb2f756a095ecfddad31354f819623ee">&#9670;&nbsp;</a></span>ubthread_cond_broadcast()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_cond_broadcast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00164">164</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00088">sys_sem_signal()</a>.</p>

</div>
</div>
<a id="ae914fae69538736dc5e494c15ce93a17"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae914fae69538736dc5e494c15ce93a17">&#9670;&nbsp;</a></span>ubthread_cond_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_cond_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00071">71</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00342">kfree()</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d2/d0b/sem_8c_source.html#l00087">sem_destroy()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_ae914fae69538736dc5e494c15ce93a17_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_ae914fae69538736dc5e494c15ce93a17_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_ae914fae69538736dc5e494c15ce93a17_cgraph" id="d5/d9a/ubthread_8c_ae914fae69538736dc5e494c15ce93a17_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,163,32"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="211,5,261,32"/>
</map>
</div>

</div>
</div>
<a id="a57168ab258d780168b7334a387651133"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a57168ab258d780168b7334a387651133">&#9670;&nbsp;</a></span>ubthread_cond_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_cond_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a>&#160;</td>
          <td class="paramname"><em>attr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00049">49</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d6/d07/stdatomic_8h_source.html#l00089">ATOMIC_VAR_INIT</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00048">ubthread_cond::id</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00241">kmalloc()</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00049">ubthread_cond::lock</a>, and <a class="el" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23">memset()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_a57168ab258d780168b7334a387651133_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_a57168ab258d780168b7334a387651133_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_a57168ab258d780168b7334a387651133_cgraph" id="d5/d9a/ubthread_8c_a57168ab258d780168b7334a387651133_cgraph">
<area shape="rect" title=" " alt="" coords="5,56,136,83"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="185,31,252,57"/>
<area shape="rect" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23" title=" " alt="" coords="184,81,253,108"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="301,31,376,57"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="425,5,515,32"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="424,56,516,83"/>
</map>
</div>

</div>
</div>
<a id="a64fb8f5f2da2564a6cae8c9f2c3bde10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64fb8f5f2da2564a6cae8c9f2c3bde10">&#9670;&nbsp;</a></span>ubthread_cond_signal()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_cond_signal </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00157">157</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

</div>
</div>
<a id="a996be9a927447a62f7168a082a046c54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a996be9a927447a62f7168a082a046c54">&#9670;&nbsp;</a></span>ubthread_cond_timedwait()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_cond_timedwait </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> struct <a class="el" href="../../da/d1c/structtimespec.html">timespec</a> *&#160;</td>
          <td class="paramname"><em>abstime</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00129">129</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d0/d27/include_2sys_2types_8h_source.html#l00082">FALSE</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00049">ubthread_cond::lock</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">mutex</a>, <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00244">sched_yield()</a>, <a class="el" href="../../d2/d4e/vitals_8c_source.html#l00035">systemVitals</a>, <a class="el" href="../../d2/d48/vitals_8h_source.html#l00038">vitalsStruct::sysUptime</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00088">ubthread_mutex_lock()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00109">ubthread_mutex_unlock()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_a996be9a927447a62f7168a082a046c54_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_a996be9a927447a62f7168a082a046c54_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_a996be9a927447a62f7168a082a046c54_cgraph" id="d5/d9a/ubthread_8c_a996be9a927447a62f7168a082a046c54_cgraph">
<area shape="rect" title=" " alt="" coords="5,68,175,95"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="914,68,1005,95"/>
<area shape="rect" href="../../d5/d9a/ubthread_8c.html#aa13bf141cd3e9bf0921fbf61ffc637d8" title=" " alt="" coords="229,119,376,145"/>
<area shape="rect" href="../../d5/d9a/ubthread_8c.html#afea3530bab360f59c09a49f490d079dd" title=" " alt="" coords="223,68,383,95"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="431,68,491,95"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="432,119,489,145"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="545,93,599,120"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="541,144,603,171"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="539,195,605,221"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="657,43,739,69"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="653,93,743,120"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="666,144,730,171"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="663,195,733,221"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="791,156,865,183"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="913,156,1005,183"/>
</map>
</div>

</div>
</div>
<a id="a30eb7c156c2422801ddb86326dbc3d81"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30eb7c156c2422801ddb86326dbc3d81">&#9670;&nbsp;</a></span>ubthread_cond_wait()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_cond_wait </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a96521d8547d8b54e20e6f18d83c06901">ubthread_cond_t</a> *&#160;</td>
          <td class="paramname"><em>cond</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00148">148</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00049">ubthread_cond::lock</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">mutex</a>, <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00244">sched_yield()</a>, <a class="el" href="../../d0/d27/include_2sys_2types_8h_source.html#l00082">TRUE</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00088">ubthread_mutex_lock()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00109">ubthread_mutex_unlock()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_a30eb7c156c2422801ddb86326dbc3d81_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_a30eb7c156c2422801ddb86326dbc3d81_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_a30eb7c156c2422801ddb86326dbc3d81_cgraph" id="d5/d9a/ubthread_8c_a30eb7c156c2422801ddb86326dbc3d81_cgraph">
<area shape="rect" title=" " alt="" coords="5,68,143,95"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="882,68,973,95"/>
<area shape="rect" href="../../d5/d9a/ubthread_8c.html#aa13bf141cd3e9bf0921fbf61ffc637d8" title=" " alt="" coords="197,119,344,145"/>
<area shape="rect" href="../../d5/d9a/ubthread_8c.html#afea3530bab360f59c09a49f490d079dd" title=" " alt="" coords="191,68,351,95"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="399,68,459,95"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="400,119,457,145"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="513,93,567,120"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="509,144,571,171"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="507,195,573,221"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="625,43,707,69"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="621,93,711,120"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="634,144,698,171"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="631,195,701,221"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="759,156,833,183"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="881,156,973,183"/>
</map>
</div>

</div>
</div>
<a id="aa0af177ef44888f3c93883294207328e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0af177ef44888f3c93883294207328e">&#9670;&nbsp;</a></span>ubthread_create()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d7/d00/sched_8h.html#a4096d94f76d96bbf005b9bbd45ed4ae1">kTask_t</a> **&#160;</td>
          <td class="paramname"><em>thread</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../dd/d1e/objgfx30_8h.html#ada085051a6d9a8e00a2cb256d1af14ba">uInt32</a> *&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void(*)(void)&#160;</td>
          <td class="paramname"><em>tproc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>arg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00083">83</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../df/dc9/exec_8c_source.html#l00066">execThread()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_aa0af177ef44888f3c93883294207328e_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_aa0af177ef44888f3c93883294207328e_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_aa0af177ef44888f3c93883294207328e_cgraph" id="d5/d9a/ubthread_8c_aa0af177ef44888f3c93883294207328e_cgraph">
<area shape="rect" title=" " alt="" coords="5,56,120,83"/>
<area shape="rect" href="../../df/dc9/exec_8c.html#a4b86d28d8fd56197042aef174de2fd58" title=" " alt="" coords="168,56,257,83"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="335,5,395,32"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a2cbadd034400c65dbd11fd4892ddf26e" title=" " alt="" coords="305,56,425,83"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a92458df2063761371869cdfe0c9b4ee3" title=" " alt="" coords="310,107,421,133"/>
</map>
</div>

</div>
</div>
<a id="a278f5d5b1e11b6668b75da6a285442e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a278f5d5b1e11b6668b75da6a285442e4">&#9670;&nbsp;</a></span>ubthread_mutex_destroy()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_mutex_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00077">77</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00342">kfree()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">mutex</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d2/d0b/sem_8c_source.html#l00087">sem_destroy()</a>, and <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00148">sys_mutex_free()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_a278f5d5b1e11b6668b75da6a285442e4_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_a278f5d5b1e11b6668b75da6a285442e4_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_a278f5d5b1e11b6668b75da6a285442e4_cgraph" id="d5/d9a/ubthread_8c_a278f5d5b1e11b6668b75da6a285442e4_cgraph">
<area shape="rect" title=" " alt="" coords="5,5,171,32"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html#aaa9ed6886459604cf73ccdbf6410e487" title=" " alt="" coords="219,5,269,32"/>
</map>
</div>

</div>
</div>
<a id="a32f60f4953d8865991ea48cf26236b97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32f60f4953d8865991ea48cf26236b97">&#9670;&nbsp;</a></span>ubthread_mutex_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_mutex_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../d0/d27/include_2sys_2types_8h.html#a0238af00180b6d9278fa1c6aa790fdf4">uint32_t</a>&#160;</td>
          <td class="paramname"><em>attr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00060">60</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d6/d07/stdatomic_8h_source.html#l00089">ATOMIC_VAR_INIT</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00053">ubthread_mutex::id</a>, <a class="el" href="../../d3/d1a/kmalloc_8c_source.html#l00241">kmalloc()</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00054">ubthread_mutex::lock</a>, <a class="el" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23">memset()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">mutex</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_a32f60f4953d8865991ea48cf26236b97_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_a32f60f4953d8865991ea48cf26236b97_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_a32f60f4953d8865991ea48cf26236b97_cgraph" id="d5/d9a/ubthread_8c_a32f60f4953d8865991ea48cf26236b97_cgraph">
<area shape="rect" title=" " alt="" coords="5,56,144,83"/>
<area shape="rect" href="../../d4/d03/kmalloc_8h.html#a150eab2ac4ce4553e21ca10e7f441762" title=" " alt="" coords="193,31,260,57"/>
<area shape="rect" href="../../da/d66/string_8h.html#ace4b911463887af5e748326323e99a23" title=" " alt="" coords="192,81,261,108"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="309,31,384,57"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="433,5,523,32"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="432,56,524,83"/>
</map>
</div>

</div>
</div>
<a id="aa13bf141cd3e9bf0921fbf61ffc637d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa13bf141cd3e9bf0921fbf61ffc637d8">&#9670;&nbsp;</a></span>ubthread_mutex_lock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_mutex_lock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00088">88</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00050">_current</a>, <a class="el" href="../../d7/d00/sched_8h_source.html#l00063">taskStruct::id</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00054">ubthread_mutex::lock</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">mutex</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00055">ubthread_mutex::pid</a>, and <a class="el" href="../../d0/d27/include_2sys_2types_8h_source.html#l00082">TRUE</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00104">sys_arch_sem_wait()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00152">sys_mutex_lock()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00088">sys_sem_signal()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00129">ubthread_cond_timedwait()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00148">ubthread_cond_wait()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_aa13bf141cd3e9bf0921fbf61ffc637d8_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_aa13bf141cd3e9bf0921fbf61ffc637d8_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_aa13bf141cd3e9bf0921fbf61ffc637d8_cgraph" id="d5/d9a/ubthread_8c_aa13bf141cd3e9bf0921fbf61ffc637d8_cgraph">
<area shape="rect" title=" " alt="" coords="5,107,152,133"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="200,81,260,108"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="201,132,259,159"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="314,81,369,108"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="310,132,373,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="308,183,375,209"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="427,5,508,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="423,56,512,83"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="435,107,499,133"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="433,157,502,184"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="560,157,635,184"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="683,132,774,159"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="683,183,775,209"/>
</map>
</div>

</div>
</div>
<a id="afea3530bab360f59c09a49f490d079dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afea3530bab360f59c09a49f490d079dd">&#9670;&nbsp;</a></span>ubthread_mutex_unlock()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ubthread_mutex_unlock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dd/d1b/ubthread_8h.html#a2b33c44e0ad37a62d92aaeeb011860e0">ubthread_mutex_t</a> *&#160;</td>
          <td class="paramname"><em>mutex</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00109">109</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00050">_current</a>, <a class="el" href="../../d7/d00/sched_8h_source.html#l00063">taskStruct::id</a>, <a class="el" href="../../dc/d94/armv6_2kpanic_8c_source.html#l00041">kpanic()</a>, <a class="el" href="../../df/d87/kprintf_8c_source.html#l00259">kprintf()</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00054">ubthread_mutex::lock</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">mutex</a>, <a class="el" href="../../dd/d1b/ubthread_8h_source.html#l00055">ubthread_mutex::pid</a>, and <a class="el" href="../../d0/d27/include_2sys_2types_8h_source.html#l00082">TRUE</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00156">sys_mutex_unlock()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00088">sys_sem_signal()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00129">ubthread_cond_timedwait()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00148">ubthread_cond_wait()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="../../d5/d9a/ubthread_8c_afea3530bab360f59c09a49f490d079dd_cgraph.png" border="0" usemap="#d5/d9a/ubthread_8c_afea3530bab360f59c09a49f490d079dd_cgraph" alt=""/></div>
<map name="d5/d9a/ubthread_8c_afea3530bab360f59c09a49f490d079dd_cgraph" id="d5/d9a/ubthread_8c_afea3530bab360f59c09a49f490d079dd_cgraph">
<area shape="rect" title=" " alt="" coords="5,107,165,133"/>
<area shape="rect" href="../../dc/d94/armv6_2kpanic_8c.html#adb9a182aa071791a306163d50d653deb" title="print panic message and halt system" alt="" coords="213,81,273,108"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a20b56810edb62a6fe59917015c30848f" title=" " alt="" coords="215,132,272,159"/>
<area shape="rect" href="../../dd/d78/video_8h.html#a5429378b96a24fadfd2d1f8d777eb95a" title=" " alt="" coords="327,81,382,108"/>
<area shape="rect" href="../../df/d87/kprintf_8c.html#a3093cdac4668a4ccffdd7f77270888b7" title=" " alt="" coords="323,132,386,159"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html#a3b4a66bf1f6583e65660f281b6014aa1" title=" " alt="" coords="321,183,388,209"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a77b934268de1b3ecdcf3f275413b3108" title="input one byte from specified port" alt="" coords="440,5,521,32"/>
<area shape="rect" href="../../dc/dac/io_8h.html#a8acc1a06073db2e7b92ffbd00fbd0cf1" title="outputut one byte to specified port" alt="" coords="436,56,525,83"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#a4f96ccac7e60296ef496008d8cbed0ff" title=" " alt="" coords="449,107,513,133"/>
<area shape="rect" href="../../dd/d71/tty_8h.html#ad96f57a7c113d3cfa76ee5fed6de33c0" title=" " alt="" coords="446,157,515,184"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a71f03d2ba55111c715b6068254847a53" title=" " alt="" coords="573,157,648,184"/>
<area shape="rect" href="../../d3/d02/armv6_2sched_8c.html#a08933fe6d593a1c78b9080359f15a0b7" title=" " alt="" coords="697,132,787,159"/>
<area shape="rect" href="../../dc/d88/armv6_2spinlock_8c.html#a740766af5da58616f700fffab6768a78" title=" " alt="" coords="696,183,788,209"/>
</map>
</div>

</div>
</div>
<a id="a72a362bc8127b8d63e1107062638664d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72a362bc8127b8d63e1107062638664d">&#9670;&nbsp;</a></span>ubthread_self()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d7/d00/sched_8h.html#a4096d94f76d96bbf005b9bbd45ed4ae1">kTask_t</a>* ubthread_self </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00045">45</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">References <a class="el" href="../../d3/d02/armv6_2sched_8c_source.html#l00050">_current</a>.</p>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="ac90cec8b766ba40fe62cf0d6328da970"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac90cec8b766ba40fe62cf0d6328da970">&#9670;&nbsp;</a></span>conds</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="../../d5/d4a/structubthread__cond__list.html">ubthread_cond_list</a>* conds = 0x0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00042">42</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

</div>
</div>
<a id="a18b6be9ca0cec4b0643171232d6f10de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18b6be9ca0cec4b0643171232d6f10de">&#9670;&nbsp;</a></span>mutex</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="../../d8/d1f/structubthread__mutex__list.html">ubthread_mutex_list</a>* mutex = 0x0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00043">43</a> of file <a class="el" href="../../d5/d9a/ubthread_8c_source.html">ubthread.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00148">sys_mutex_free()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00152">sys_mutex_lock()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00143">sys_mutex_new()</a>, <a class="el" href="../../d9/d56/sys__arch_8c_source.html#l00156">sys_mutex_unlock()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00129">ubthread_cond_timedwait()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00148">ubthread_cond_wait()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00077">ubthread_mutex_destroy()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00060">ubthread_mutex_init()</a>, <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00088">ubthread_mutex_lock()</a>, and <a class="el" href="../../d5/d9a/ubthread_8c_source.html#l00109">ubthread_mutex_unlock()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../dir_dc43877d82dd332f9fb2071fcca799d6.html">kernel</a></li><li class="navelem"><a class="el" href="../../d5/d9a/ubthread_8c.html">ubthread.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>