|
Open Model Railroad Network (OpenMRN)
|
Helper class for waiting (blocking the current thread) until a message in the queue shows up. More...
Public Member Functions | |
| BlockingWait (TypedQAsync< T > *parent) | |
| Constructor. | |
| T * | result () |
Public Member Functions inherited from Executable | |
| void | test_deletion () |
| void | notify () override |
| Crashes the program – everyone who is expecting notify calls must override this function. | |
Public Member Functions inherited from QMember | |
| void | init () |
| Initiailize a QMember, in place of a public placement construction. | |
Private Member Functions | |
| void | alloc_result (QMember *item) OVERRIDE |
| Return the result of an alloc_async() from a memory Pool. | |
| void | run () OVERRIDE |
| Entry point. | |
Private Attributes | |
| SyncNotifiable | n_ |
| helps blocking the calling thread until the allocation is complete. | |
| T * | result_ |
| Response of the allocation. | |
Additional Inherited Members | |
Protected Member Functions inherited from QMember | |
| QMember () | |
| Constructor. | |
| ~QMember () | |
| Destructor. | |
Protected Attributes inherited from QMember | |
| QMember * | next |
| pointer to the next member in the queue | |
Helper class for waiting (blocking the current thread) until a message in the queue shows up.
|
inline |
|
inlineprivatevirtual |
Return the result of an alloc_async() from a memory Pool.
| item | result of the the allocation |
Reimplemented from Executable.
|
inline |
|
inlineprivatevirtual |
Entry point.
This funciton will be called when *this gets scheduled on the CPU.
Implements Executable.
|
private |
|
private |