A "keeper" class for CSyncObject-based synchronization. More...
#include <r8bbase.h>
Public Member Functions | |
| CSyncKeeper (CSyncObject &aSyncObj) | |
| Constructor acquires a specified synchronization object. | |
| CSyncKeeper (CSyncObject *const aSyncObj) | |
| Constructor acquires a specified synchronization object. | |
A "keeper" class for CSyncObject-based synchronization.
Sync keeper class. The object of this class can be used as auto-init and auto-deinit object for calling the acquire() and release() functions of an object of the CSyncObject class. This "keeper" object is best used in functions as an "automatic" object allocated on the stack, possibly via the R8BSYNC() macro.
| r8b::CSyncKeeper::CSyncKeeper | ( | CSyncObject *const | aSyncObj | ) |
Constructor acquires a specified synchronization object.
| aSyncObj | Pointer to the sync object which should be used for sync'ing, can be nullptr. |
| r8b::CSyncKeeper::CSyncKeeper | ( | CSyncObject & | aSyncObj | ) |
Constructor acquires a specified synchronization object.
| aSyncObj | Reference to the sync object which should be used for sync'ing. |