Ion
|
Interface to enable pluggable worker behavior. More...
#include "workerpool.h"
Public Member Functions | |
virtual void | DoWork ()=0 |
Called repeatedly in worker thread loop, whenever GetWorkSemaphore() is signaled to indicate that there is work to do. More... | |
virtual const std::string & | GetName () const =0 |
Return the worker's name. More... | |
Protected Member Functions | |
virtual | ~Worker () |
Virtual classes need virtual desructors. More... | |
Interface to enable pluggable worker behavior.
One of the WorkerPool threads will invoke Worker::DoWork() when there is work available to do (i.e. when someone calls GetWorkSemaphore()->Post()).
Definition at line 51 of file workerpool.h.
|
inlineprotectedvirtual |
Virtual classes need virtual desructors.
Definition at line 71 of file workerpool.h.
|
pure virtual |
Called repeatedly in worker thread loop, whenever GetWorkSemaphore() is signaled to indicate that there is work to do.
|
pure virtual |
Return the worker's name.
Referenced by ion::base::WorkerPool::GetName().