Like Glib::RecMutex, but can be defined at compile time.
Use GLIBMM_STATIC_REC_MUTEX_INIT
to initialize a StaticRecMutex:
RefPtr<> is a reference-counting shared smartpointer.
Definition refptr.h:52
Like Glib::RecMutex, but can be defined at compile time.
Definition thread.h:519
#define GLIBMM_STATIC_REC_MUTEX_INIT
Initializer macro for Glib::StaticRecMutex.
Definition thread.h:74
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.
- Deprecated
- Use Glib::Threads::RecMutex instead, which can be used statically.