Logo Search packages:      
Sourcecode: ardour version File versions  Download package

Glib::StaticMutex Struct Reference

#include <thread.h>

List of all members.

Detailed Description

Like Glib::Mutex, but can be defined at compile time. Use GLIBMM_STATIC_MUTEX_INIT to initialize a StaticMutex:
 Glib::StaticMutex mutex = GLIBMM_STATIC_MUTEX_INIT;
A StaticMutex can be used without calling Glib::thread_init(), it will silently do nothing then. That will also work when using the implicit conversion to Mutex&, thus you can safely use Mutex::Lock with a StaticMutex.

Definition at line 346 of file thread.h.

Public Member Functions

GStaticMutex * gobj ()
void lock ()
 operator Mutex & ()
bool trylock ()
void unlock ()

Public Attributes

GStaticMutex gobject_

Related Functions

(Note that these are not member functions.)


The documentation for this struct was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index