SourceMod SDK  1.7
SourceMod::IDBThreadOperation Class Referenceabstract

#include <public/IDBDriver.h>

Public Member Functions

virtual IDBDriverGetDriver ()=0
 Must return the driver this operation is using, or NULL if not using any driver. This is not never inside the thread. More...
 
virtual IdentityToken_t * GetOwner ()=0
 Must return the object owning this threaded operation. This is never called inside the thread. More...
 
virtual void RunThreadPart ()=0
 Called inside the thread; this is where any blocking or threaded operations must occur.
 
virtual void RunThinkPart ()=0
 Called in a server frame after the thread operation has completed. This is the non-threaded completion callback, which although optional, is useful for pumping results back to normal game API.
 
virtual void CancelThinkPart ()=0
 If RunThinkPart() is not called, this will be called instead. Note that RunThreadPart() is ALWAYS called regardless, and this is only called when Core requests that the operation be scrapped (for example, the database driver might be unloading).
 
virtual void Destroy ()=0
 Called when the operation is finalized and any resources can be released.
 

Detailed Description

Specification for a threaded database operation.

Member Function Documentation

virtual IDBDriver* SourceMod::IDBThreadOperation::GetDriver ( )
pure virtual

Must return the driver this operation is using, or NULL if not using any driver. This is not never inside the thread.

Returns
IDBDriver pointer.
virtual IdentityToken_t* SourceMod::IDBThreadOperation::GetOwner ( )
pure virtual

Must return the object owning this threaded operation. This is never called inside the thread.

Returns
IdentityToken_t pointer.

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