SourceMod SDK  1.7
SourceMod::IMutex Class Referenceabstract

Describes a simple locking mutex. More...

#include <public/IThreader.h>

Public Member Functions

virtual ~IMutex ()
 
virtual bool TryLock ()=0
 Attempts to lock, but returns instantly. More...
 
virtual void Lock ()=0
 Attempts to lock by waiting for release.
 
virtual void Unlock ()=0
 Unlocks the mutex.
 
virtual void DestroyThis ()=0
 Destroys the mutex handle.
 

Detailed Description

Describes a simple locking mutex.

Constructor & Destructor Documentation

virtual SourceMod::IMutex::~IMutex ( )
inlinevirtual

Virtual Destructor

Member Function Documentation

virtual bool SourceMod::IMutex::TryLock ( )
pure virtual

Attempts to lock, but returns instantly.

Returns
True if lock was obtained, false otherwise.

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