1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Xenomai API: ksrc/nucleus/synch.c File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.5 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<form action="search.php" method="get">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><label> <u>S</u>earch for </label></td>
<td><input type="text" name="query" value="" size="20" accesskey="s"/></td>
</tr>
</table>
</form>
</li>
</ul>
</div>
</div>
<div class="contents">
<h1>ksrc/nucleus/synch.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
Thread synchronization services.
<p>
<dl class="author" compact><dt><b>Author:</b></dt><dd>Philippe Gerum</dd></dl>
Copyright (C) 2001,2002,2003 Philippe Gerum <<a href="mailto:rpm@xenomai.org">rpm@xenomai.org</a>>.<p>
Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.<p>
Xenomai is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.<p>
You should have received a copy of the GNU General Public License along with Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
<p>
<p>
<div class="dynheader">
Include dependency graph for synch.c:</div>
<div class="dynsection">
<p><center><img src="synch_8c__incl.png" border="0" usemap="#ksrc/nucleus/synch.c_map" alt=""></center>
<map name="ksrc/nucleus/synch.c_map">
<area shape="rect" href="pod_8h.html" title="Real-time pod interface header." alt="" coords="376,82,477,106"><area shape="rect" href="include_2nucleus_2thread_8h-source.html" title="nucleus/thread.h" alt="" coords="368,156,485,180"><area shape="rect" href="synch_8h-source.html" title="nucleus/synch.h" alt="" coords="605,156,720,180"><area shape="rect" href="module_8h-source.html" title="nucleus/module.h" alt="" coords="505,231,628,255"><area shape="rect" href="include_2nucleus_2intr_8h-source.html" title="nucleus/intr.h" alt="" coords="199,231,297,255"><area shape="rect" href="stat_8h-source.html" title="nucleus/stat.h" alt="" coords="284,306,388,330"><area shape="rect" href="include_2nucleus_2timer_8h.html" title="nucleus/timer.h" alt="" coords="372,231,481,255"><area shape="rect" href="nucleus_2types_8h-source.html" title="nucleus/types.h" alt="" coords="280,455,392,479"><area shape="rect" href="compiler_8h-source.html" title="nucleus/compiler.h" alt="" coords="187,530,315,554"><area shape="rect" href="assert_8h-source.html" title="nucleus/assert.h" alt="" coords="453,530,571,554"><area shape="rect" href="timebase_8h.html" title="nucleus/timebase.h" alt="" coords="412,306,545,330"><area shape="rect" href="nucleus_2queue_8h-source.html" title="nucleus/queue.h" alt="" coords="461,380,576,404"><area shape="rect" href="core_8h-source.html" title="nucleus/core.h" alt="" coords="416,455,523,479"></map>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g9ba3d7a44aca6f7246ba1a5fa3f3251a">xnsynch_init</a> (xnsynch_t *synch, xnflags_t flags)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initialize a synchronization object. <a href="group__synch.html#g9ba3d7a44aca6f7246ba1a5fa3f3251a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g6a230ca2035ff7494b517f52cd4fd800">xnsynch_sleep_on</a> (xnsynch_t *synch, xnticks_t timeout, xntmode_t timeout_mode)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sleep on a synchronization object. <a href="group__synch.html#g6a230ca2035ff7494b517f52cd4fd800"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g6651c0538a5984ee20547e159ad1bd30">xnsynch_clear_boost</a> (xnsynch_t *synch, xnthread_t *lastowner)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clear the priority boost. <a href="group__synch.html#g6651c0538a5984ee20547e159ad1bd30"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g800c68e26b7fc0eca599e18785137b5c">xnsynch_renice_sleeper</a> (xnthread_t *thread)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Change a sleeper's priority. <a href="group__synch.html#g800c68e26b7fc0eca599e18785137b5c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">xnthread_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#gc9926fd6af7a7fe01b9f8d02c1a62957">xnsynch_wakeup_one_sleeper</a> (xnsynch_t *synch)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Give the resource ownership to the next waiting thread. <a href="group__synch.html#gc9926fd6af7a7fe01b9f8d02c1a62957"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">xnthread_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g80c718b07372cfc4b1c18b4d5ac1c7ce">xnsynch_peek_pendq</a> (xnsynch_t *synch)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Access the thread leading a synch object wait queue. <a href="group__synch.html#g80c718b07372cfc4b1c18b4d5ac1c7ce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">xnpholder_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g15b56df22d23acd5de3d1d622b2caa6a">xnsynch_wakeup_this_sleeper</a> (xnsynch_t *synch, xnpholder_t *holder)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Give the resource ownership to a given waiting thread. <a href="group__synch.html#g15b56df22d23acd5de3d1d622b2caa6a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#g0a340f5c1541bc6f431c105928ec8489">xnsynch_flush</a> (xnsynch_t *synch, xnflags_t reason)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unblock all waiters pending on a resource. <a href="group__synch.html#g0a340f5c1541bc6f431c105928ec8489"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#gcf7a1aacc7be8816ea644474e75434f9">xnsynch_forget_sleeper</a> (xnthread_t *thread)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Abort a wait for a resource. <a href="group__synch.html#gcf7a1aacc7be8816ea644474e75434f9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__synch.html#gc9da9b803c6e27b32ebd2651dcd23922">xnsynch_release_all_ownerships</a> (xnthread_t *thread)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release all ownerships. <a href="group__synch.html#gc9da9b803c6e27b32ebd2651dcd23922"></a><br></td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Jun 8 18:08:50 2008 for Xenomai API by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.5 </small></address>
</body>
</html>
|