Libftpp
A modern C++ library
WorkerPool::IJobs Class Referenceabstract

Interface for defining jobs to be executed by the worker pool. Classes implementing this interface must define the start() method. More...

#include <worker_pool.hpp>

Public Member Functions

virtual ~IJobs ()
 
virtual void start ()=0
 

Detailed Description

Interface for defining jobs to be executed by the worker pool. Classes implementing this interface must define the start() method.

Note
Not very useful in C++11 and later due to std::function support, but the subject asked for it.

Definition at line 62 of file worker_pool.hpp.

Constructor & Destructor Documentation

◆ ~IJobs()

virtual WorkerPool::IJobs::~IJobs ( )
inlinevirtual

Definition at line 66 of file worker_pool.hpp.

Member Function Documentation

◆ start()

virtual void WorkerPool::IJobs::start ( )
pure virtual

Referenced by WorkerPool::addJob().