65
67
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>: <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#7bf8f07d9998d8852e5e7632ef908f68" title="Initializer macro for Glib::StaticRecMutex.">GLIBMM_STATIC_REC_MUTEX_INIT</a>;
66
68
</pre></div> 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#gb26d01c776801f1fff00753e97af4fc7" 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>&, 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>. <hr><h2>Member Function Documentation</h2>
86
69
<a class="anchor" name="f318bffd84f77b39dbfe65bf654c265b"></a><!-- doxytag: member="Glib::StaticRecMutex::lock" ref="f318bffd84f77b39dbfe65bf654c265b" args="()" -->