Spinnaker SDK C++
4.1.0.172
 
 

 
Loading...
Searching...
No Matches
CGlobalLockUnlocker Class Reference

Unlocks the global lock object on destruction. More...

#include <GCSynch.h>

Public Member Functions

 CGlobalLockUnlocker (CGlobalLock &lock)
 
 ~CGlobalLockUnlocker ()
 
void UnlockEarly (void)
 This function allows to unlock the object early before the object is destroyed.
 

Protected Attributes

CGlobalLockm_Lock
 
bool m_enabled
 

Detailed Description

Unlocks the global lock object on destruction.

This is for automatic UNLOCKING only. We can't do automatic locking here since there is no returnvalue for contructors

Constructor & Destructor Documentation

◆ CGlobalLockUnlocker()

CGlobalLockUnlocker ( CGlobalLock lock)
inline

◆ ~CGlobalLockUnlocker()

~CGlobalLockUnlocker ( )
inline

Member Function Documentation

◆ UnlockEarly()

void UnlockEarly ( void  )
inline

This function allows to unlock the object early before the object is destroyed.

Member Data Documentation

◆ m_enabled

bool m_enabled
protected

◆ m_Lock

CGlobalLock& m_Lock
protected

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