📄 classpintcondmutex.html
字号:
</table><a name="z417_4" doxytag="PIntCondMutex::operator+="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PIntCondMutex& PIntCondMutex::operator+= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>inc</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>Add to condition value. Use the <a class="el" href="classPSemaphore.html#z347_0">Wait()</a> function to acquire the mutex, modify the value, then release the mutex, possibly releasing the thread in the <a class="el" href="classPCondMutex.html#a0">WaitCondition()</a> function if the condition was met by the operation.<p><dl compact><dt><b>Returns: </b></dt><dd>The object reference for consecutive operations in the same statement. </dl> </td> </tr></table><a name="z417_5" doxytag="PIntCondMutex::operator--"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PIntCondMutex& PIntCondMutex::operator-- </td> <td class="md" valign="top">( </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>Decrement condition value. Use the <a class="el" href="classPSemaphore.html#z347_0">Wait()</a> function to acquire the mutex, modify the value, then release the mutex, possibly releasing the thread in the <a class="el" href="classPCondMutex.html#a0">WaitCondition()</a> function if the condition was met by the operation.<p><dl compact><dt><b>Returns: </b></dt><dd>The object reference for consecutive operations in the same statement. </dl> </td> </tr></table><a name="z417_6" doxytag="PIntCondMutex::operator-="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PIntCondMutex& PIntCondMutex::operator-= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>dec</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>Subtract from condition value. Use the <a class="el" href="classPSemaphore.html#z347_0">Wait()</a> function to acquire the mutex, modify the value, then release the mutex, possibly releasing the thread in the <a class="el" href="classPCondMutex.html#a0">WaitCondition()</a> function if the condition was met by the operation.<p><dl compact><dt><b>Returns: </b></dt><dd>The object reference for consecutive operations in the same statement. </dl> </td> </tr></table><a name="z417_2" doxytag="PIntCondMutex::operator="></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> PIntCondMutex& PIntCondMutex::operator= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>newval</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>Assign new condition value. Use the <a class="el" href="classPSemaphore.html#z347_0">Wait()</a> function to acquire the mutex, modify the value, then release the mutex, possibly releasing the thread in the <a class="el" href="classPCondMutex.html#a0">WaitCondition()</a> function if the condition was met by the operation.<p><dl compact><dt><b>Returns: </b></dt><dd>The object reference for consecutive operations in the same statement. </dl> </td> </tr></table><a name="z415_0" doxytag="PIntCondMutex::PrintOn"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void PIntCondMutex::PrintOn </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname1" valign="top" nowrap> <em>strm</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Print the object on the stream. This will be of the form #"(value < target)"#. <p>Reimplemented from <a class="el" href="classPObject.html#z201_0">PObject</a>. </td> </tr></table><hr><h2>Member Data Documentation</h2><a name="n2" doxytag="PIntCondMutex::operation"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classPIntCondMutex.html#z413_0">Operation</a> PIntCondMutex::operation<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n1" doxytag="PIntCondMutex::target"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int PIntCondMutex::target<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a name="n0" doxytag="PIntCondMutex::value"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> int PIntCondMutex::value<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="syncthrd_8h-source.html">syncthrd.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:17 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -