|
Open Model Railroad Network (OpenMRN)
|
RAII class for holding a critical section lock. More...
#include <BlockOrWakeUp.hxx>
Public Member Functions | |
| CriticalHolder (CriticalHolder &&o) | |
| Move constructor for the RAII object. | |
Private Member Functions | |
| CriticalHolder (BlockOrWakeUp< Critical > *parent) | |
| Upgrades a lock to a critical section. | |
Private Attributes | |
| BlockOrWakeUp< Critical > * | parent_ |
| Pointer to parent. | |
Friends | |
| class | LockHolder |
RAII class for holding a critical section lock.
Definition at line 84 of file BlockOrWakeUp.hxx.
|
inline |
Definition at line 86 of file BlockOrWakeUp.hxx.
|
inline |
Move constructor for the RAII object.
| o | c++ movable object. |
Definition at line 93 of file BlockOrWakeUp.hxx.
|
inlineprivate |
Upgrades a lock to a critical section.
This is private so that we can only get a new holder from a LockHolder.
| parent | represents whose lock we are holding. |
Definition at line 104 of file BlockOrWakeUp.hxx.
|
friend |
Definition at line 100 of file BlockOrWakeUp.hxx.
|
private |
Pointer to parent.
Definition at line 111 of file BlockOrWakeUp.hxx.