📄 classpmutex.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PMutex class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>PMutex Class Reference</h1><code>#include <<a class="el" href="mutex_8h-source.html">mutex.h</a>></code><p><p>Inheritance diagram for PMutex:<p><center><img src="classPMutex.png" usemap="#PMutex_map" border="0" alt=""></center><map name="PMutex_map"><area href="classPSemaphore.html" alt="PSemaphore" shape="rect" coords="53,56,150,80"><area href="classPObject.html" alt="PObject" shape="rect" coords="53,0,150,24"><area href="classPCondMutex.html" alt="PCondMutex" shape="rect" coords="0,168,97,192"><area href="classPVXMLCache.html" alt="PVXMLCache" shape="rect" coords="107,168,204,192"><area href="classPIntCondMutex.html" alt="PIntCondMutex" shape="rect" coords="0,224,97,248"></map><a href="classPMutex-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPMutex.html#a0">PMutex</a> ()</td></tr><tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classPMutex.html#a1">PMutex</a> (const PMutex &mutex)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class defines a thread mutual exclusion object. A mutex is where a piece of code or data cannot be accessed by more than one thread at a time. To prevent this the PMutex is used in the following manner: \begin{verbatim} PMutex mutex;<p>...<p>mutex.Wait();<p>... critical section - only one thread at a time here.<p>mutex.Signal();<p>... \end{verbatim} The first thread will pass through the <a class="el" href="classPSemaphore.html#z347_0">Wait()</a># function, a second thread will block on that function until the first calls the <a class="el" href="classPSemaphore.html#z347_2">Signal()</a># function, releasing the second thread. <p><hr><h2>Constructor & Destructor Documentation</h2><a name="a0" doxytag="PMutex::PMutex"></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"> PMutex::PMutex </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> </td> </tr></table><a name="a1" doxytag="PMutex::PMutex"></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"> PMutex::PMutex </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const PMutex & </td> <td class="mdname1" valign="top" nowrap> <em>mutex</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> </td> </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="mutex_8h-source.html">mutex.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:18 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 + -