Like Glib::Mutex, but can be defined at compile time. More...
#include <glibmm/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:
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.
- Deprecated:
- Use Glib::Threads::Mutex instead, which can be used statically.
Member Function Documentation
GStaticMutex* Glib::StaticMutex::gobj |
( |
| ) |
|
|
inline |
void Glib::StaticMutex::lock |
( |
| ) |
|
Glib::StaticMutex::operator Mutex& |
( |
| ) |
|
bool Glib::StaticMutex::trylock |
( |
| ) |
|
void Glib::StaticMutex::unlock |
( |
| ) |
|
Friends And Related Function Documentation
#define GLIBMM_STATIC_MUTEX_INIT { G_STATIC_MUTEX_INIT } |
|
related |