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

TaskQueuem_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
pTaskQueuePointer to the TaskQueue to draw Tasks from
biogears::TaskProcessor::~TaskProcessor ( )
default

Member Function Documentation

void biogears::TaskProcessor::operator() ( )

Parenthesis operator that draws and runs Tasks until the TaskQueue is empty.

Member Data Documentation

TaskQueue* biogears::TaskProcessor::m_pTaskQueue = nullptr
private

Pointer to the TaskQueue to draw Tasks from.