Logo Search packages:      
Sourcecode: ardour version File versions

Glib::StaticRWLock Struct Reference
[Threads]

#include <thread.h>

Inherited by Glib::RWLock.

List of all members.


Detailed Description

Like Glib::RWLock, but can be defined at compile time. Use GLIBMM_STATIC_RW_LOCK_INIT to initialize a StaticRWLock:
 Glib::StaticRWLock rw_lock = GLIBMM_STATIC_RW_LOCK_INIT;
A StaticRWLock can be used without calling Glib::thread_init(), it will silently do nothing then. That will also work when using the implicit conversion to RWLock&, thus you can safely use RWLock::ReaderLock and RWLock::WriterLock with a StaticRWLock.

Definition at line 527 of file thread.h.


Public Member Functions

GStaticRWLock * gobj ()
 operator RWLock & ()
void reader_lock ()
bool reader_trylock ()
void reader_unlock ()
void writer_lock ()
bool writer_trylock ()
void writer_unlock ()

Public Attributes

GStaticRWLock gobject_

Related Functions

(Note that these are not member functions.)

 GLIBMM_STATIC_RW_LOCK_INIT

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

Generated by  Doxygen 1.6.0   Back to index