class XGHandleLock

Declared in <XHandle.h>

This is an inline stack class which locks the handle. This is so that handles will be unlocked when I'm done or when an exception is thrown


Construction/Destruction

XGHandleLock::XGHandleLock
XGHandleLock::~XGHandleLock


Construction/Destruction

XGHandleLock::XGHandleLock

Usage: XGHandleLock(XGHandle&ptr)

This stores a pointer to the specified handle, and locks the handle using the XGHandle::Lock() method.

XGHandleLock::~XGHandleLock

Usage: ~XGHandleLock()

This unlocks the stored handle, and is invoked when the stack unwinds, if this is a stack-based object