#include <public/IThreader.h>
Inherits SourceMod::SMInterface, and SourceMod::IThreadCreator.
Inheritance diagram for SourceMod::IThreader:


Public Member Functions | |
| virtual const char * | GetInterfaceName () |
| Must return a string defining the interface's unique name. | |
| virtual unsigned int | GetInterfaceVersion () |
| Must return an integer defining the interface's version. | |
| virtual bool | IsVersionCompatible (unsigned int version) |
| Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning. | |
| virtual IMutex * | MakeMutex ()=0 |
| Creates a mutex (mutual exclusion lock). | |
| virtual void | ThreadSleep (unsigned int ms)=0 |
| Sleeps the calling thread for a number of milliseconds. | |
| virtual IEventSignal * | MakeEventSignal ()=0 |
| Creates a non-signalled event. | |
| virtual IThreadWorker * | MakeWorker (IThreadWorkerCallbacks *hooks, bool threaded)=0 |
| Creates a thread worker. | |
| virtual void | DestroyWorker (IThreadWorker *pWorker)=0 |
| Destroys an IThreadWorker pointer. | |
Definition at line 395 of file IThreader.h.
| virtual bool SourceMod::IThreader::IsVersionCompatible | ( | unsigned int | version | ) | [inline, virtual] |
Must return whether the requested version number is backwards compatible. Note: This can be overridden for breaking changes or custom versioning.
| version | Version number to compare against. |
Reimplemented from SourceMod::SMInterface.
Definition at line 406 of file IThreader.h.
| virtual IMutex* SourceMod::IThreader::MakeMutex | ( | ) | [pure virtual] |
| virtual void SourceMod::IThreader::ThreadSleep | ( | unsigned int | ms | ) | [pure virtual] |
Sleeps the calling thread for a number of milliseconds.
| ms | Millisecond count to sleep. |
| virtual IEventSignal* SourceMod::IThreader::MakeEventSignal | ( | ) | [pure virtual] |
| virtual IThreadWorker* SourceMod::IThreader::MakeWorker | ( | IThreadWorkerCallbacks * | hooks, | |
| bool | threaded | |||
| ) | [pure virtual] |
Creates a thread worker.
| hooks | Optional pointer to callback interface. | |
| threaded | If true, the worker will be threaded. If false, the worker will require manual frame execution. |
| virtual void SourceMod::IThreader::DestroyWorker | ( | IThreadWorker * | pWorker | ) | [pure virtual] |
1.5.1