GClasses
GClasses::GSpinLockHolder Class Reference

Detailed Description

This holder takes a lock (if it is non-NULL) when you construct it. It guarantees to release the lock when it is destroyed.

#include <GThread.h>

Public Member Functions

 GSpinLockHolder (GSpinLock *pLock, const char *szWhoHoldsTheLock)
 
 ~GSpinLockHolder ()
 

Protected Attributes

GSpinLockm_pLock
 

Constructor & Destructor Documentation

GClasses::GSpinLockHolder::GSpinLockHolder ( GSpinLock pLock,
const char *  szWhoHoldsTheLock 
)
inline
GClasses::GSpinLockHolder::~GSpinLockHolder ( )
inline

Member Data Documentation

GSpinLock* GClasses::GSpinLockHolder::m_pLock
protected