📄 group__osip__cond.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 condition variables 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 Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>oSIP condition variables 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>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>osip_cond * </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__COND.html#ga0">osip_cond_init</a> (void)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__COND.html#ga1">osip_cond_destroy</a> (struct osip_cond *cond)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__COND.html#ga2">osip_cond_signal</a> (struct osip_cond *cond)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__COND.html#ga3">osip_cond_wait</a> (struct osip_cond *cond, struct <a class="el" href="structosip__mutex.html">osip_mutex</a> *mut)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="group__oSIP__COND.html#ga4">osip_cond_timedwait</a> (struct osip_cond *cond, struct <a class="el" href="structosip__mutex.html">osip_mutex</a> *mut, const struct timespec *abstime)</td></tr></table><hr><h2>Function Documentation</h2><a class="anchor" name="ga1" doxytag="osip_condv.h::osip_cond_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_cond_destroy </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct osip_cond * </td> <td class="mdname1" valign="top" nowrap> <em>cond</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Destroy a condition variable <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>cond</em> </td><td>The condition variable to destroy. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga0" doxytag="osip_condv.h::osip_cond_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 osip_cond* osip_cond_init </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Allocate and Initialise a condition variable </td> </tr></table><a class="anchor" name="ga2" doxytag="osip_condv.h::osip_cond_signal" ></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_cond_signal </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct osip_cond * </td> <td class="mdname1" valign="top" nowrap> <em>cond</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Signal the condition variable. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>cond</em> </td><td>The condition variable to signal. </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="osip_condv.h::osip_cond_timedwait" ></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_cond_timedwait </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct osip_cond * </td> <td class="mdname" nowrap> <em>cond</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>struct <a class="el" href="structosip__mutex.html">osip_mutex</a> * </td> <td class="mdname" nowrap> <em>mut</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>const struct timespec * </td> <td class="mdname" nowrap> <em>abstime</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Timed wait on the condition variable. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>cond</em> </td><td>The condition variable to wait on. </td></tr> <tr><td></td><td valign=top><em>mut</em> </td><td>The external mutex </td></tr> <tr><td></td><td valign=top><em>abstime</em> </td><td>time to wait until </td></tr> </table></dl> </td> </tr></table><a class="anchor" name="ga3" doxytag="osip_condv.h::osip_cond_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_cond_wait </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">struct osip_cond * </td> <td class="mdname" nowrap> <em>cond</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>struct <a class="el" href="structosip__mutex.html">osip_mutex</a> * </td> <td class="mdname" nowrap> <em>mut</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Wait on the condition variable. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td></td><td valign=top><em>cond</em> </td><td>The condition variable to wait on. </td></tr> <tr><td></td><td valign=top><em>mut</em> </td><td>The external mutex </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 + -