Logo Search packages:      
Sourcecode: ardour version File versions

Glib::StaticRecMutex Struct Reference

#include <thread.h>

Inherited by Glib::RecMutex.

List of all members.

Detailed Description

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

Definition at line 459 of file thread.h.

Public Member Functions

GStaticRecMutex * gobj ()
void lock ()
void lock_full (unsigned int depth)
 operator RecMutex & ()
bool trylock ()
void unlock ()
unsigned int unlock_full ()

Public Attributes

GStaticRecMutex 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