An AsyncRunPermittedTask is represented by a task execution and a completion signalling. More...
#include <run_permitted_state_machine.h>
Public Member Functions | |
AsyncRunPermittedTask (const TServiceCallFunc &operation, const std::function< void()> &finished_handler) | |
void | execute () |
Execute the task. More... | |
void | signalCompletion () |
Signal completion of the task execution. More... | |
Private Attributes | |
std::function< void()> | finished_handler_ |
TServiceCallFunc | operation_ |
An AsyncRunPermittedTask is represented by a task execution and a completion signalling.
The separation of task execution and the completion signalling allows the task execution to be done asynchronously. Both functions have the signature
.
Definition at line 54 of file run_permitted_state_machine.h.
|
inline |
Definition at line 57 of file run_permitted_state_machine.h.
|
inline |
Execute the task.
Definition at line 65 of file run_permitted_state_machine.h.
|
inline |
Signal completion of the task execution.
Definition at line 76 of file run_permitted_state_machine.h.
|
private |
Definition at line 83 of file run_permitted_state_machine.h.
|
private |
Definition at line 82 of file run_permitted_state_machine.h.