GNE
0.75.0
|
A class meant to act as a base class for objects who might want an acquire/ release pair of functions tied to a mutex for object-level synchronization. More...
#include <SynchronizedObject.h>
Public Member Functions | |
void | acquire () |
Synchronizes on this object. | |
void | release () |
Releases the lock on this object. |
Protected Attributes | |
Mutex | lock |
A class meant to act as a base class for objects who might want an acquire/ release pair of functions tied to a mutex for object-level synchronization.
You can inherit from this class publically to allow for external sources to do locking. Protected inheritance is possible to allow for implicit locking internally, but likely would not be any more useful and declaring a Mutex object.