Sophie

Sophie

distrib > Mandriva > 2010.0 > x86_64 > by-pkgid > 7f3e5f74d754b480ec33648905c4afae > files > 678

glibmm2.4-doc-2.22.1-1mdv2010.0.x86_64.rpm

<!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"/>
<title>glibmm: Glib::StaticRecMutex Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceGlib.html">Glib</a>::<a class="el" href="structGlib_1_1StaticRecMutex.html">StaticRecMutex</a>
  </div>
</div>
<div class="contents">
<h1>Glib::StaticRecMutex Struct Reference<br/>
<small>
[<a class="el" href="group__Threads.html">Threads</a>]</small>
</h1><!-- doxytag: class="Glib::StaticRecMutex" -->
<p>Like <a class="el" href="classGlib_1_1RecMutex.html">Glib::RecMutex</a>, but can be defined at compile time. <a href="#_details">More...</a></p>

<p>Inherited by <a class="el" href="classGlib_1_1RecMutex.html">Glib::RecMutex</a>.</p>

<p><a href="structGlib_1_1StaticRecMutex-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#af318bffd84f77b39dbfe65bf654c265b">lock</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#ad59351bd8e600907511b9ed8a693c1ff">trylock</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#aed1a4127138ac49d4d7f2c27da7c236b">unlock</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#a9c1fbb797f5e0b72b885186e67ae6ebd">lock_full</a> (unsigned int depth)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#a380a6ae88b358e5b8661a7e765b19e8e">unlock_full</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#a8fbcf435aeb1c8797f7f4584cf06e0e6">operator RecMutex&amp;</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GStaticRecMutex*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#afc0c434e6d72bc3260346d79e8dd5588">gobj</a> ()</td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticRecMutex.html#a7bf8f07d9998d8852e5e7632ef908f68">GLIBMM_STATIC_REC_MUTEX_INIT</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializer macro for <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">Glib::StaticRecMutex</a>. <a href="#a7bf8f07d9998d8852e5e7632ef908f68"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Like <a class="el" href="classGlib_1_1RecMutex.html">Glib::RecMutex</a>, but can be defined at compile time. </p>
<p>Use <code>GLIBMM_STATIC_REC_MUTEX_INIT</code> to initialize a <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">StaticRecMutex</a>: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">Glib::StaticRecMutex</a> mutex = <a class="code" href="structGlib_1_1StaticRecMutex.html#a7bf8f07d9998d8852e5e7632ef908f68" title="Initializer macro for Glib::StaticRecMutex.">GLIBMM_STATIC_REC_MUTEX_INIT</a>;
</pre></div><p> A <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">StaticRecMutex</a> can be used without calling <a class="el" href="group__Threads.html#gab26d01c776801f1fff00753e97af4fc7" title="Initializes the GLib thread system.">Glib::thread_init()</a>, it will silently do nothing then. That will also work when using the implicit conversion to <a class="el" href="classGlib_1_1RecMutex.html">RecMutex</a>&amp;, thus you can safely use <a class="el" href="classGlib_1_1RecMutex_1_1Lock.html" title="Utility class for exception-safe locking of recursive mutexes.">RecMutex::Lock</a> with a <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">StaticRecMutex</a>. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="afc0c434e6d72bc3260346d79e8dd5588"></a><!-- doxytag: member="Glib::StaticRecMutex::gobj" ref="afc0c434e6d72bc3260346d79e8dd5588" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GStaticRecMutex* Glib::StaticRecMutex::gobj </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af318bffd84f77b39dbfe65bf654c265b"></a><!-- doxytag: member="Glib::StaticRecMutex::lock" ref="af318bffd84f77b39dbfe65bf654c265b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::StaticRecMutex::lock </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9c1fbb797f5e0b72b885186e67ae6ebd"></a><!-- doxytag: member="Glib::StaticRecMutex::lock_full" ref="a9c1fbb797f5e0b72b885186e67ae6ebd" args="(unsigned int depth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::StaticRecMutex::lock_full </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"> <em>depth</em></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8fbcf435aeb1c8797f7f4584cf06e0e6"></a><!-- doxytag: member="Glib::StaticRecMutex::operator RecMutex &amp;" ref="a8fbcf435aeb1c8797f7f4584cf06e0e6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::StaticRecMutex::operator <a class="el" href="classGlib_1_1RecMutex.html">RecMutex</a>&amp; </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad59351bd8e600907511b9ed8a693c1ff"></a><!-- doxytag: member="Glib::StaticRecMutex::trylock" ref="ad59351bd8e600907511b9ed8a693c1ff" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::StaticRecMutex::trylock </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aed1a4127138ac49d4d7f2c27da7c236b"></a><!-- doxytag: member="Glib::StaticRecMutex::unlock" ref="aed1a4127138ac49d4d7f2c27da7c236b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::StaticRecMutex::unlock </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a380a6ae88b358e5b8661a7e765b19e8e"></a><!-- doxytag: member="Glib::StaticRecMutex::unlock_full" ref="a380a6ae88b358e5b8661a7e765b19e8e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int Glib::StaticRecMutex::unlock_full </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a7bf8f07d9998d8852e5e7632ef908f68"></a><!-- doxytag: member="Glib::StaticRecMutex::GLIBMM_STATIC_REC_MUTEX_INIT" ref="a7bf8f07d9998d8852e5e7632ef908f68" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLIBMM_STATIC_REC_MUTEX_INIT<code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializer macro for <a class="el" href="structGlib_1_1StaticRecMutex.html" title="Like Glib::RecMutex, but can be defined at compile time.">Glib::StaticRecMutex</a>. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>glibmm/thread.h</li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Sep 21 11:07:25 2009 for glibmm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>