⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__osip__sema.html

📁 关于OSIP协议栈开发的一个很有用的东东~~~
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>libosip: oSIP semaphore definitions</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.8 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><h1>oSIP semaphore definitions<br><small>[<a class="el" href="group__osip2__port.html">The OS port modules</a>]</small></h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Classes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>struct &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structosip__sem.html">osip_sem</a></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="structosip__sem.html">osip_sem</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__SEMA.html#ga0">osip_sem_init</a> (unsigned int value)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__SEMA.html#ga1">osip_sem_destroy</a> (struct <a class="el" href="structosip__sem.html">osip_sem</a> *sem)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__SEMA.html#ga2">osip_sem_post</a> (struct <a class="el" href="structosip__sem.html">osip_sem</a> *sem)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__SEMA.html#ga3">osip_sem_wait</a> (struct <a class="el" href="structosip__sem.html">osip_sem</a> *sem)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__SEMA.html#ga4">osip_sem_trywait</a> (struct <a class="el" href="structosip__sem.html">osip_sem</a> *sem)</td></tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga1" doxytag="osip_mt.h::osip_sem_destroy" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int osip_sem_destroy           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">struct <a class="el" href="structosip__sem.html">osip_sem</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>sem</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Destroy a semaphore. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>sem</em>&nbsp;</td><td>The semaphore to destroy. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga0" doxytag="osip_mt.h::osip_sem_init" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> struct <a class="el" href="structosip__sem.html">osip_sem</a>* osip_sem_init           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>value</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Allocate and Initialise a semaphore. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>value</em>&nbsp;</td><td>The initial value for the semaphore. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga2" doxytag="osip_mt.h::osip_sem_post" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int osip_sem_post           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">struct <a class="el" href="structosip__sem.html">osip_sem</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>sem</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Post operation on a semaphore. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>sem</em>&nbsp;</td><td>The semaphore to destroy. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga4" doxytag="osip_mt.h::osip_sem_trywait" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int osip_sem_trywait           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">struct <a class="el" href="structosip__sem.html">osip_sem</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>sem</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Wait operation on a semaphore. NOTE: if the semaphore is at 0, this call won't block. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>sem</em>&nbsp;</td><td>The semaphore to destroy. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="ga3" doxytag="osip_mt.h::osip_sem_wait" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int osip_sem_wait           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">struct <a class="el" href="structosip__sem.html">osip_sem</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>sem</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Wait operation on a semaphore. NOTE: this call will block if the semaphore is at 0. <dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>sem</em>&nbsp;</td><td>The semaphore to destroy. </td></tr>  </table></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Tue Sep 7 15:07:58 2004 for libosip by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.8 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -