class XGCritical

Declared in <XThread.h>

Access object. This provides the enter/exit semantics in a stack object for semaphore access; this provides a return-safe and throw-safe way of providing enter/exit semaphore access


Construction/Destruction

XGCritical::XGCritical
XGCritical::~XGCritical


Construction/Destruction

XGCritical::XGCritical

Usage: XGCritical(XGSemaphore*x)

Constructs this object. Stores a pointer to the semaphore, and calls the semaphore's "EnterCritical" method.

XGCritical::~XGCritical

Usage: ~XGCritical()

Destructs this object. This calls the "LeaveCritical" method of the stored semaphore