SourceMod::IDBThreadOperation Class Reference

#include <public/IDBDriver.h>

List of all members.

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.
virtual IdentityToken_t * GetOwner ()=0
 Must return the object owning this threaded operation. This is never called inside the thread.
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.

Definition at line 686 of file IDBDriver.h.


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:
Generated on Thu Aug 28 22:10:20 2008 for SourceMod SDK by  doxygen 1.5.1