biogears::TaskProcessor Class Reference
This class is a functor used in threads launched by the TaskRunner. It's responsibility is to pull and run Tasks from the TaskRunner until the Task queue is empty. More...
#include <TaskProcessor.h>
Public Member Functions | |
TaskProcessor (TaskQueue *pTaskQueue) | |
Constructor. More... | |
~TaskProcessor ()=default | |
void | operator() () |
Parenthesis operator that draws and runs Tasks until the TaskQueue is empty. More... | |
Private Attributes | |
TaskQueue * | m_pTaskQueue = nullptr |
Pointer to the TaskQueue to draw Tasks from. More... | |
Detailed Description
This class is a functor used in threads launched by the TaskRunner. It's responsibility is to pull and run Tasks from the TaskRunner until the Task queue is empty.
Constructor & Destructor Documentation
biogears::TaskProcessor::TaskProcessor | ( | TaskQueue * | pTaskQueue | ) |
Constructor.
- Parameters
-
pTaskQueue Pointer to the TaskQueue to draw Tasks from
|
default |
Member Function Documentation
void biogears::TaskProcessor::operator() | ( | ) |
Parenthesis operator that draws and runs Tasks until the TaskQueue is empty.