|
SourceMod SDK
1.7
|
Describes a threading system. More...
#include <public/IThreader.h>
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. More... | |
| virtual IMutex * | MakeMutex ()=0 |
| Creates a mutex (mutual exclusion lock). More... | |
| virtual void | ThreadSleep (unsigned int ms)=0 |
| Sleeps the calling thread for a number of milliseconds. More... | |
| virtual IEventSignal * | MakeEventSignal ()=0 |
| Creates a non-signalled event. More... | |
| virtual IThreadWorker * | MakeWorker (IThreadWorkerCallbacks *hooks, bool threaded)=0 |
| Creates a thread worker. More... | |
| virtual void | DestroyWorker (IThreadWorker *pWorker)=0 |
| Destroys an IThreadWorker pointer. More... | |
Public Member Functions inherited from SourceMod::IThreadCreator | |
| virtual | ~IThreadCreator () |
| virtual void | MakeThread (IThread *pThread)=0 |
| Creates a basic thread. More... | |
| virtual IThreadHandle * | MakeThread (IThread *pThread, ThreadFlags flags)=0 |
| Creates a thread with specific options. More... | |
| virtual IThreadHandle * | MakeThread (IThread *pThread, const ThreadParams *params)=0 |
| Creates a thread with specific options. More... | |
| virtual void | GetPriorityBounds (ThreadPriority &max, ThreadPriority &min)=0 |
| Returns the priority bounds. Note: On Linux, the min and max are both Thread_Normal. More... | |
Describes a threading system.
|
pure virtual |
Destroys an IThreadWorker pointer.
| pWorker | IThreadWorker pointer to destroy. |
|
inlinevirtual |
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.
|
pure virtual |
Creates a non-signalled event.
|
pure virtual |
Creates a mutex (mutual exclusion lock).
|
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. |
|
pure virtual |
Sleeps the calling thread for a number of milliseconds.
| ms | Millisecond count to sleep. |