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...
 

Protected 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

◆ TaskProcessor()

TaskProcessor::TaskProcessor ( TaskQueue pTaskQueue)

Constructor.

Parameters
pTaskQueuePointer to the TaskQueue to draw Tasks from

◆ ~TaskProcessor()

TaskProcessor::~TaskProcessor ( )
default

Member Function Documentation

◆ operator()()

void TaskProcessor::operator() ( )

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

Member Data Documentation

◆ m_pTaskQueue

TaskQueue* TaskProcessor::m_pTaskQueue = nullptr
protected

Pointer to the TaskQueue to draw Tasks from.