SourceMod SDK  1.7
SourceMod::IThread Class Referenceabstract

Handles a single thread's execution. More...

#include <public/IThreader.h>

Public Member Functions

virtual ~IThread ()
 
virtual void RunThread (IThreadHandle *pHandle)=0
 Called when the thread runs (in its own thread). More...
 
virtual void OnTerminate (IThreadHandle *pHandle, bool cancel)=0
 Called when the thread terminates. This occurs inside the thread as well. More...
 

Detailed Description

Handles a single thread's execution.

Constructor & Destructor Documentation

virtual SourceMod::IThread::~IThread ( )
inlinevirtual

Virtual destructor

Member Function Documentation

virtual void SourceMod::IThread::OnTerminate ( IThreadHandle pHandle,
bool  cancel 
)
pure virtual

Called when the thread terminates. This occurs inside the thread as well.

Parameters
pHandlePointer to the thread's handle.
cancelTrue if the thread did not finish, false otherwise.
virtual void SourceMod::IThread::RunThread ( IThreadHandle pHandle)
pure virtual

Called when the thread runs (in its own thread).

Parameters
pHandlePointer to the thread's handle.

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