This class represents boolean value, access to which is guarded by mutex
Inheritance:
Public Methods
-
SyncFlag(bool v=false)
-
bool peek() const
- Checks value without locking.
-
void modify(bool v)
- Changes value without locking.
-
bool get() const
-
void set(bool v)
-
operator bool() const
-
SyncFlag& operator=(const SyncFlag &o)
-
SyncFlag& operator=(bool v)
Inherited from Mutex:
Public Methods
-
void lock() const
-
void unlock() const
Protected Fields
-
GMutex* mutex
Documentation
This class represents boolean value, access to which
is guarded by mutex
SyncFlag(bool v=false)
bool peek() const
-
Checks value without locking.
Use with lock/unlock()
void modify(bool v)
-
Changes value without locking.
Use with lock/unlock()
bool get() const
void set(bool v)
operator bool() const
SyncFlag& operator=(const SyncFlag &o)
SyncFlag& operator=(bool v)
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.