Like Glib::RWLock, but can be defined at compile time.
More...
#include <glibmm/thread.h>
Like Glib::RWLock, but can be defined at compile time.
Use GLIBMM_STATIC_RW_LOCK_INIT
to initialize a StaticRWLock:
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.
GStaticRWLock* Glib::StaticRWLock::gobj |
( |
| ) |
|
|
inline |
Glib::StaticRWLock::operator RWLock& |
( |
| ) |
|
void Glib::StaticRWLock::reader_lock |
( |
| ) |
|
bool Glib::StaticRWLock::reader_trylock |
( |
| ) |
|
void Glib::StaticRWLock::reader_unlock |
( |
| ) |
|
void Glib::StaticRWLock::writer_lock |
( |
| ) |
|
bool Glib::StaticRWLock::writer_trylock |
( |
| ) |
|
void Glib::StaticRWLock::writer_unlock |
( |
| ) |
|
#define GLIBMM_STATIC_RW_LOCK_INIT { G_STATIC_RW_LOCK_INIT } |
|
related |