#include <public/IThreader.h>
Inherits SourceMod::IThreadCreator.
Inheritance diagram for SourceMod::IThreadWorker:
Public Member Functions | |
| virtual | ~IThreadWorker () |
| virtual unsigned int | RunFrame ()=0 |
| Runs one "frame" of the worker. | |
| virtual bool | Pause ()=0 |
| Pauses the worker. | |
| virtual bool | Unpause ()=0 |
| Unpauses the worker. | |
| virtual bool | Start ()=0 |
| Starts the worker thread. | |
| virtual bool | Stop (bool flush)=0 |
| Stops the worker thread. | |
| virtual WorkerState | GetStatus (unsigned int *numThreads)=0 |
| Returns the status of the worker. | |
Definition at line 313 of file IThreader.h.
| virtual SourceMod::IThreadWorker::~IThreadWorker | ( | ) | [inline, virtual] |
Virtual Destructor
Definition at line 317 of file IThreader.h.
| virtual unsigned int SourceMod::IThreadWorker::RunFrame | ( | ) | [pure virtual] |
Runs one "frame" of the worker.
| virtual bool SourceMod::IThreadWorker::Pause | ( | ) | [pure virtual] |
Pauses the worker.
| virtual bool SourceMod::IThreadWorker::Unpause | ( | ) | [pure virtual] |
Unpauses the worker.
| virtual bool SourceMod::IThreadWorker::Start | ( | ) | [pure virtual] |
Starts the worker thread.
| virtual bool SourceMod::IThreadWorker::Stop | ( | bool | flush | ) | [pure virtual] |
Stops the worker thread.
| flush | If true, all remaining tasks will be cancelled. Otherwise, the threader will wait until the queue is empty. |
| virtual WorkerState SourceMod::IThreadWorker::GetStatus | ( | unsigned int * | numThreads | ) | [pure virtual] |
Returns the status of the worker.
| numThreads | Pointer to store number of threads in the queue. |
1.5.1