Public Member Functions

SourceMod::IThreadCreator Class Reference

Describes a thread creator. More...

#include <public/IThreader.h>

Inherited by SourceMod::IThreader, and SourceMod::IThreadWorker.

List of all members.

Public Member Functions

virtual ~IThreadCreator ()
virtual void MakeThread (IThread *pThread)=0
 Creates a basic thread.
virtual IThreadHandleMakeThread (IThread *pThread, ThreadFlags flags)=0
 Creates a thread with specific options.
virtual IThreadHandleMakeThread (IThread *pThread, const ThreadParams *params)=0
 Creates a thread with specific options.
virtual void GetPriorityBounds (ThreadPriority &max, ThreadPriority &min)=0
 Returns the priority bounds. Note: On Linux, the min and max are both Thread_Normal.

Detailed Description

Describes a thread creator.

Definition at line 200 of file IThreader.h.


Constructor & Destructor Documentation

virtual SourceMod::IThreadCreator::~IThreadCreator (  )  [inline, virtual]

Virtual Destructor

Definition at line 204 of file IThreader.h.


Member Function Documentation

virtual void SourceMod::IThreadCreator::MakeThread ( IThread pThread  )  [pure virtual]

Creates a basic thread.

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

Creates a thread with specific options.

Parameters:
pThread IThread pointer for callbacks.
flags Flags 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:
pThread IThread pointer for callbacks.
params Extended options for the thread.
Returns:
IThreadHandle pointer (must be released).
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:
max Stores the maximum priority level.
min Stores the minimum priority level.

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