SourceMod SDK  1.7
SourceMod::IThreadCreator Class Referenceabstract

Describes a thread creator. More...

#include <public/IThreader.h>

Inheritance diagram for SourceMod::IThreadCreator:
SourceMod::IThreader SourceMod::IThreadWorker

Public Member Functions

virtual ~IThreadCreator ()
 
virtual void MakeThread (IThread *pThread)=0
 Creates a basic thread. More...
 
virtual IThreadHandleMakeThread (IThread *pThread, ThreadFlags flags)=0
 Creates a thread with specific options. More...
 
virtual IThreadHandleMakeThread (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...
 

Detailed Description

Describes a thread creator.

Constructor & Destructor Documentation

virtual SourceMod::IThreadCreator::~IThreadCreator ( )
inlinevirtual

Virtual Destructor

Member Function Documentation

virtual void SourceMod::IThreadCreator::GetPriorityBounds ( ThreadPriority &  max,
ThreadPriority &  min 
)
pure virtual

Returns the priority bounds. Note: On Linux, the min and max are both Thread_Normal.

Parameters
maxStores the maximum priority level.
minStores the minimum priority level.
virtual void SourceMod::IThreadCreator::MakeThread ( IThread pThread)
pure virtual

Creates a basic thread.

Parameters
pThreadIThread pointer for callbacks.
virtual IThreadHandle* SourceMod::IThreadCreator::MakeThread ( IThread pThread,
ThreadFlags  flags 
)
pure virtual

Creates a thread with specific options.

Parameters
pThreadIThread pointer for callbacks.
flagsFlags for the thread.
Returns
IThreadHandle pointer (must be released).
virtual IThreadHandle* SourceMod::IThreadCreator::MakeThread ( IThread pThread,
const ThreadParams params 
)
pure virtual

Creates a thread with specific options.

Parameters
pThreadIThread pointer for callbacks.
paramsExtended options for the thread.
Returns
IThreadHandle pointer (must be released).

The documentation for this class was generated from the following file: