Sophie

Sophie

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

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::StaticMutex 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_1StaticMutex.html">StaticMutex</a>
  </div>
</div>
<div class="contents">
<h1>Glib::StaticMutex Struct Reference<br/>
<small>
[<a class="el" href="group__Threads.html">Threads</a>]</small>
</h1><!-- doxytag: class="Glib::StaticMutex" -->
<p>Like <a class="el" href="classGlib_1_1Mutex.html" title="Represents a mutex (mutual exclusion).">Glib::Mutex</a>, but can be defined at compile time. <a href="#_details">More...</a></p>

<p><a href="structGlib_1_1StaticMutex-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_1StaticMutex.html#a7052b89e18e8c7fa2c987dc429a01296">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_1StaticMutex.html#a874e22be27896359ecb4008cd6e6f8ab">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_1StaticMutex.html#a539181ea215c00c84e90d4f7a0131e4d">unlock</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticMutex.html#a144e7de846446e2ce1740adc7bf0dc9a">operator Mutex&amp;</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">GStaticMutex*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structGlib_1_1StaticMutex.html#a381d25917d27c665d3db638b4aa8b743">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_1StaticMutex.html#ae6c90ef370e11fbbe9f0cf8fa295dd0b">GLIBMM_STATIC_MUTEX_INIT</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializer macro for <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">Glib::StaticMutex</a>. <a href="#ae6c90ef370e11fbbe9f0cf8fa295dd0b"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Like <a class="el" href="classGlib_1_1Mutex.html" title="Represents a mutex (mutual exclusion).">Glib::Mutex</a>, but can be defined at compile time. </p>
<p>Use <code>GLIBMM_STATIC_MUTEX_INIT</code> to initialize a <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">StaticMutex</a>: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">Glib::StaticMutex</a> mutex = <a class="code" href="structGlib_1_1StaticMutex.html#ae6c90ef370e11fbbe9f0cf8fa295dd0b" title="Initializer macro for Glib::StaticMutex.">GLIBMM_STATIC_MUTEX_INIT</a>;
</pre></div><p> A <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">StaticMutex</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_1Mutex.html" title="Represents a mutex (mutual exclusion).">Mutex</a>&amp;, thus you can safely use <a class="el" href="classGlib_1_1Mutex_1_1Lock.html" title="Utility class for exception-safe mutex locking.">Mutex::Lock</a> with a <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">StaticMutex</a>. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a381d25917d27c665d3db638b4aa8b743"></a><!-- doxytag: member="Glib::StaticMutex::gobj" ref="a381d25917d27c665d3db638b4aa8b743" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GStaticMutex* Glib::StaticMutex::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="a7052b89e18e8c7fa2c987dc429a01296"></a><!-- doxytag: member="Glib::StaticMutex::lock" ref="a7052b89e18e8c7fa2c987dc429a01296" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::StaticMutex::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="a144e7de846446e2ce1740adc7bf0dc9a"></a><!-- doxytag: member="Glib::StaticMutex::operator Mutex &amp;" ref="a144e7de846446e2ce1740adc7bf0dc9a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::StaticMutex::operator <a class="el" href="classGlib_1_1Mutex.html">Mutex</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="a874e22be27896359ecb4008cd6e6f8ab"></a><!-- doxytag: member="Glib::StaticMutex::trylock" ref="a874e22be27896359ecb4008cd6e6f8ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::StaticMutex::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="a539181ea215c00c84e90d4f7a0131e4d"></a><!-- doxytag: member="Glib::StaticMutex::unlock" ref="a539181ea215c00c84e90d4f7a0131e4d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::StaticMutex::unlock </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="ae6c90ef370e11fbbe9f0cf8fa295dd0b"></a><!-- doxytag: member="Glib::StaticMutex::GLIBMM_STATIC_MUTEX_INIT" ref="ae6c90ef370e11fbbe9f0cf8fa295dd0b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLIBMM_STATIC_MUTEX_INIT<code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initializer macro for <a class="el" href="structGlib_1_1StaticMutex.html" title="Like Glib::Mutex, but can be defined at compile time.">Glib::StaticMutex</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>