<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>OpenMAXBellagio: tsemaphore.h 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="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </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 style="padding-left: 0.5em;"> <div id="projectname">OpenMAXBellagio  <span id="projectnumber">0.9.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.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> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </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"> $(document).ready(function(){initNavTree('tsemaphore_8h.html','');}); </script> <div id="doc-content"> <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"> <div class="title">tsemaphore.h File Reference</div> </div> </div><!--header--> <div class="contents"> <p><a href="tsemaphore_8h_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="nested-classes"></a> Data Structures</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structtsem__t.html">tsem_t</a></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> </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:a6de0f53c5c11f8f53ce72c70d74d9abc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a></td></tr> <tr class="separator:a6de0f53c5c11f8f53ce72c70d74d9abc"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a665038e768ece73b351ebc4696735cfc"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a665038e768ece73b351ebc4696735cfc">OSCL_EXPORT_REF</a></td></tr> <tr class="separator:a665038e768ece73b351ebc4696735cfc"><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> <tr class="memitem:a231168866de7fadc20f63167e9cae588"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structtsem__t.html">tsem_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a231168866de7fadc20f63167e9cae588">tsem_t</a></td></tr> <tr class="separator:a231168866de7fadc20f63167e9cae588"><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> <tr class="memitem:a843d7acecc3a7ec53a66d1a40d3c048c"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a843d7acecc3a7ec53a66d1a40d3c048c">tsem_init</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem, unsigned int val)</td></tr> <tr class="separator:a843d7acecc3a7ec53a66d1a40d3c048c"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a09db4b1f30a093b8c49d8f7de9159415"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a09db4b1f30a093b8c49d8f7de9159415">tsem_deinit</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem)</td></tr> <tr class="separator:a09db4b1f30a093b8c49d8f7de9159415"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac3aff783e32ae9d0736ba38d76e62be1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#ac3aff783e32ae9d0736ba38d76e62be1">tsem_down</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem)</td></tr> <tr class="separator:ac3aff783e32ae9d0736ba38d76e62be1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a495e7eccd661193aba6801b9ae4a3fd7"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a495e7eccd661193aba6801b9ae4a3fd7">tsem_timed_down</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem, unsigned int milliSecondsDelay)</td></tr> <tr class="separator:a495e7eccd661193aba6801b9ae4a3fd7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a64d778846c9eb62d0d67db26bbdc9cf0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a64d778846c9eb62d0d67db26bbdc9cf0">tsem_up</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem)</td></tr> <tr class="separator:a64d778846c9eb62d0d67db26bbdc9cf0"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afb71917f12e14f8fffebce5735091f81"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#afb71917f12e14f8fffebce5735091f81">tsem_reset</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem)</td></tr> <tr class="separator:afb71917f12e14f8fffebce5735091f81"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afe09b0908017f9ec0e1be7d2dec04f9f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#afe09b0908017f9ec0e1be7d2dec04f9f">tsem_wait</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem)</td></tr> <tr class="separator:afe09b0908017f9ec0e1be7d2dec04f9f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a3fc80b2d508d6fd0428268a0279157d3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="tsemaphore_8h.html#a3fc80b2d508d6fd0428268a0279157d3">tsem_signal</a> (<a class="el" href="structtsem__t.html">tsem_t</a> *tsem)</td></tr> <tr class="separator:a3fc80b2d508d6fd0428268a0279157d3"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Macro Definition Documentation</h2> <a class="anchor" id="a665038e768ece73b351ebc4696735cfc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define OSCL_EXPORT_REF</td> </tr> </table> </div><div class="memdoc"> <p>Definition at line <a class="el" href="tsemaphore_8h_source.html#l00033">33</a> of file <a class="el" href="tsemaphore_8h_source.html">tsemaphore.h</a>.</p> </div> </div> <a class="anchor" id="a6de0f53c5c11f8f53ce72c70d74d9abc"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">#define OSCL_IMPORT_REF</td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="tsemaphore_8h.html">src/tsemaphore.h</a></p> <p>Implements a simple inter-thread semaphore so not to have to deal with IPC creation and the like.</p> <p>Copyright (C) 2007-2009 STMicroelectronics Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).</p> <p>This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.</p> <p>This library 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 Lesser General Public License for more details.</p> <p>You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA </p> <p>Definition at line <a class="el" href="tsemaphore_8h_source.html#l00032">32</a> of file <a class="el" href="tsemaphore_8h_source.html">tsemaphore.h</a>.</p> </div> </div> <h2 class="groupheader">Typedef Documentation</h2> <a class="anchor" id="a231168866de7fadc20f63167e9cae588"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef struct <a class="el" href="structtsem__t.html">tsem_t</a> <a class="el" href="structtsem__t.html">tsem_t</a></td> </tr> </table> </div><div class="memdoc"> <p>The structure contains the semaphore value, mutex and green light flag </p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="a09db4b1f30a093b8c49d8f7de9159415"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tsem_deinit </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Destroy the semaphore</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to destroy </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00057">57</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, and <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>.</p> <p>Referenced by <a class="el" href="omx__base__component_8c_source.html#l00044">base_constructor_remove_garbage_collected()</a>, <a class="el" href="omx__base__port_8c_source.html#l00134">base_port_Destructor()</a>, <a class="el" href="omx__base__component_8c_source.html#l00271">omx_base_component_Destructor()</a>, and <a class="el" href="omx__clocksrc__component_8c_source.html#l00121">omx_clocksrc_component_Destructor()</a>.</p> </div> </div> <a class="anchor" id="ac3aff783e32ae9d0736ba38d76e62be1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tsem_down </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Decreases the value of the semaphore. Blocks if the semaphore value is zero.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to decrease </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00097">97</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>, and <a class="el" href="tsemaphore_8h_source.html#l00041">tsem_t::semval</a>.</p> <p>Referenced by <a class="el" href="omx__base__port_8c_source.html#l00273">base_port_DisablePort()</a>, <a class="el" href="omx__base__port_8c_source.html#l00327">base_port_EnablePort()</a>, <a class="el" href="omx__base__port_8c_source.html#l00176">base_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00807">clocksrc_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__base__component_8c_source.html#l01438">compMessageHandlerFunction()</a>, <a class="el" href="omxaudiomixertest_8c_source.html#l00080">main()</a>, <a class="el" href="omx__audiomixer__component_8c_source.html#l00399">omx_audio_mixer_BufferMgmtFunction()</a>, <a class="el" href="omx__base__component_8c_source.html#l00370">omx_base_component_DoStateSet()</a>, <a class="el" href="omx__base__filter_8c_source.html#l00083">omx_base_filter_BufferMgmtFunction()</a>, <a class="el" href="omx__base__sink_8c_source.html#l00067">omx_base_sink_BufferMgmtFunction()</a>, <a class="el" href="omx__base__sink_8c_source.html#l00206">omx_base_sink_twoport_BufferMgmtFunction()</a>, <a class="el" href="omx__base__source_8c_source.html#l00068">omx_base_source_BufferMgmtFunction()</a>, <a class="el" href="omx__base__source_8c_source.html#l00211">omx_base_source_twoport_BufferMgmtFunction()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00628">omx_clocksrc_BufferMgmtFunction()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00361">omx_clocksrc_component_SetConfig()</a>, <a class="el" href="omx__video__scheduler__component_8c_source.html#l00272">omx_video_scheduler_component_ClockPortHandleFunction()</a>, and <a class="el" href="omx__video__scheduler__component_8c_source.html#l00417">omx_video_scheduler_component_port_FlushProcessingBuffers()</a>.</p> </div> </div> <a class="anchor" id="a843d7acecc3a7ec53a66d1a40d3c048c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int tsem_init </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>val</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Initializes the semaphore at a given value</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to initialize</td></tr> <tr><td class="paramname">val</td><td>the initial value of the semaphore</td></tr> </table> </dd> </dl> <p><a class="el" href="tsemaphore_8c.html">src/tsemaphore.c</a></p> <p>Implements a simple inter-thread semaphore so not to have to deal with IPC creation and the like.</p> <p>Copyright (C) 2007-2009 STMicroelectronics Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).</p> <p>This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.</p> <p>This library 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 Lesser General Public License for more details.</p> <p>You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Initializes the semaphore at a given value</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to initialize </td></tr> <tr><td class="paramname">val</td><td>the initial value of the semaphore </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00039">39</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>, and <a class="el" href="tsemaphore_8h_source.html#l00041">tsem_t::semval</a>.</p> <p>Referenced by <a class="el" href="omx__base__port_8c_source.html#l00055">base_port_Constructor()</a>, <a class="el" href="omxaudiomixertest_8c_source.html#l00080">main()</a>, <a class="el" href="omx__base__component_8c_source.html#l00095">omx_base_component_Constructor()</a>, and <a class="el" href="omx__clocksrc__component_8c_source.html#l00035">omx_clocksrc_component_Constructor()</a>.</p> </div> </div> <a class="anchor" id="afb71917f12e14f8fffebce5735091f81"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tsem_reset </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Reset the value of the semaphore</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to reset </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00121">121</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>, and <a class="el" href="tsemaphore_8h_source.html#l00041">tsem_t::semval</a>.</p> <p>Referenced by <a class="el" href="omx__base__port_8c_source.html#l00273">base_port_DisablePort()</a>, <a class="el" href="omx__base__port_8c_source.html#l00176">base_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00807">clocksrc_port_FlushProcessingBuffers()</a>, and <a class="el" href="omx__video__scheduler__component_8c_source.html#l00417">omx_video_scheduler_component_port_FlushProcessingBuffers()</a>.</p> </div> </div> <a class="anchor" id="a3fc80b2d508d6fd0428268a0279157d3"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tsem_signal </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Signal the condition,if waiting</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to signal </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00141">141</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, and <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>.</p> <p>Referenced by <a class="el" href="omx__base__port_8c_source.html#l00176">base_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00807">clocksrc_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__base__component_8c_source.html#l00370">omx_base_component_DoStateSet()</a>, and <a class="el" href="omx__video__scheduler__component_8c_source.html#l00417">omx_video_scheduler_component_port_FlushProcessingBuffers()</a>.</p> </div> </div> <a class="anchor" id="a495e7eccd661193aba6801b9ae4a3fd7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int tsem_timed_down </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"><em>milliSecondsDelay</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Decreases the value of the semaphore. Blocks if the semaphore value is zero. If the timeout is reached the function exits with error ETIMEDOUT</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to decrease </td></tr> <tr><td class="paramname">timevalue</td><td>the value of delay for the timeout </td></tr> </table> </dd> </dl> <p>convert timeval to timespec and add delay in milliseconds for the timeout </p> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00069">69</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, <a class="el" href="omxvolcontroltest_8c_source.html#l00034">err</a>, <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>, and <a class="el" href="tsemaphore_8h_source.html#l00041">tsem_t::semval</a>.</p> <p>Referenced by <a class="el" href="omxprioritytest_8c_source.html#l00075">main()</a>.</p> </div> </div> <a class="anchor" id="a64d778846c9eb62d0d67db26bbdc9cf0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tsem_up </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Increases the value of the semaphore</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to increase </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00110">110</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>, and <a class="el" href="tsemaphore_8h_source.html#l00041">tsem_t::semval</a>.</p> <p>Referenced by <a class="el" href="omxaudiomixertest_8c_source.html#l00453">audiomixerEventHandler()</a>, <a class="el" href="omx__base__clock__port_8c_source.html#l00133">base_clock_port_SendBufferFunction()</a>, <a class="el" href="omx__base__port_8c_source.html#l00383">base_port_AllocateBuffer()</a>, <a class="el" href="omx__base__port_8c_source.html#l00273">base_port_DisablePort()</a>, <a class="el" href="omx__base__port_8c_source.html#l00327">base_port_EnablePort()</a>, <a class="el" href="omx__base__port_8c_source.html#l00176">base_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__base__port_8c_source.html#l00547">base_port_FreeBuffer()</a>, <a class="el" href="omx__base__port_8c_source.html#l00918">base_port_ReturnBufferFunction()</a>, <a class="el" href="omx__base__port_8c_source.html#l00818">base_port_SendBufferFunction()</a>, <a class="el" href="omx__base__port_8c_source.html#l00462">base_port_UseBuffer()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00807">clocksrc_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__audiomixer__component_8c_source.html#l00399">omx_audio_mixer_BufferMgmtFunction()</a>, <a class="el" href="omx__base__component_8c_source.html#l00271">omx_base_component_Destructor()</a>, <a class="el" href="omx__base__component_8c_source.html#l00370">omx_base_component_DoStateSet()</a>, <a class="el" href="omx__base__component_8c_source.html#l01488">omx_base_component_MessageHandler()</a>, <a class="el" href="omx__base__component_8c_source.html#l01289">omx_base_component_SendCommand()</a>, <a class="el" href="omx__base__filter_8c_source.html#l00083">omx_base_filter_BufferMgmtFunction()</a>, <a class="el" href="omx__base__sink_8c_source.html#l00067">omx_base_sink_BufferMgmtFunction()</a>, <a class="el" href="omx__base__sink_8c_source.html#l00206">omx_base_sink_twoport_BufferMgmtFunction()</a>, <a class="el" href="omx__base__source_8c_source.html#l00068">omx_base_source_BufferMgmtFunction()</a>, <a class="el" href="omx__base__source_8c_source.html#l00211">omx_base_source_twoport_BufferMgmtFunction()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00628">omx_clocksrc_BufferMgmtFunction()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00257">omx_clocksrc_component_SendCommand()</a>, <a class="el" href="omx__clocksrc__component_8c_source.html#l00361">omx_clocksrc_component_SetConfig()</a>, <a class="el" href="omx__video__scheduler__component_8c_source.html#l00417">omx_video_scheduler_component_port_FlushProcessingBuffers()</a>, <a class="el" href="omx__video__scheduler__component_8c_source.html#l00168">omx_video_scheduler_component_port_SendBufferFunction()</a>, <a class="el" href="omxprioritytest_8c_source.html#l00266">rmEventHandler()</a>, <a class="el" href="omxvolcontroltest_8c_source.html#l00388">volcEmptyBufferDone()</a>, and <a class="el" href="omxvolcontroltest_8c_source.html#l00338">volcEventHandler()</a>.</p> </div> </div> <a class="anchor" id="afe09b0908017f9ec0e1be7d2dec04f9f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void tsem_wait </td> <td>(</td> <td class="paramtype"><a class="el" href="structtsem__t.html">tsem_t</a> * </td> <td class="paramname"><em>tsem</em></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>Wait on the condition.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">tsem</td><td>the semaphore to wait </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="tsemaphore_8c_source.html#l00131">131</a> of file <a class="el" href="tsemaphore_8c_source.html">tsemaphore.c</a>.</p> <p>References <a class="el" href="tsemaphore_8h_source.html#l00039">tsem_t::condition</a>, and <a class="el" href="tsemaphore_8h_source.html#l00040">tsem_t::mutex</a>.</p> <p>Referenced by <a class="el" href="omx__audiomixer__component_8c_source.html#l00399">omx_audio_mixer_BufferMgmtFunction()</a>, <a class="el" href="omx__base__filter_8c_source.html#l00083">omx_base_filter_BufferMgmtFunction()</a>, <a class="el" href="omx__base__sink_8c_source.html#l00067">omx_base_sink_BufferMgmtFunction()</a>, <a class="el" href="omx__base__sink_8c_source.html#l00206">omx_base_sink_twoport_BufferMgmtFunction()</a>, <a class="el" href="omx__base__source_8c_source.html#l00068">omx_base_source_BufferMgmtFunction()</a>, and <a class="el" href="omx__base__source_8c_source.html#l00211">omx_base_source_twoport_BufferMgmtFunction()</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <html> <body> <hr size="1"><small>Generated for OpenMAX Bellagio rel. 0.9.3 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small> <br> <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=160680&type=4" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a> </body> </html>