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