Like Glib::Mutex, but can be defined at compile time.
Use GLIBMM_STATIC_MUTEX_INIT
to initialize a StaticMutex:
RefPtr<> is a reference-counting shared smartpointer.
Definition refptr.h:52
Like Glib::Mutex, but can be defined at compile time.
Definition thread.h:396
#define GLIBMM_STATIC_MUTEX_INIT
Initializer macro for Glib::StaticMutex.
Definition thread.h:417
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.