Class Spinnaker::GenICam::CGlobalLock¶
ClassList > GenICam > CGlobalLock
Named global lock which can be used over process boundaries.
#include <GCSynch.h>
Public Functions¶
| Type | Name |
|---|---|
| CGlobalLock (const char * pszName) |
|
| CGlobalLock (const gcstring & strName) |
|
| bool | IsValid (void) const |
| bool | Lock (unsigned int timeout_ms) |
| bool | TryLock (void) |
| void | Unlock (void) |
| ~CGlobalLock () |
Protected Attributes¶
| Type | Name |
|---|---|
| long | m_DebugCount |
Public Functions Documentation¶
function CGlobalLock [1/3]¶
Creates a global lock object name pszName. In case an object with the same name already exists a reference to the existing object will be created. If pszName is NULL an unnamed object will be created.
function CGlobalLock [2/3]¶
Creates a global lock object name strName. In case an object with the same name already exists a reference to the existing object will be created. If strName is empty an unnamed object will be created.
function IsValid¶
tests whether the lock is valid
function Lock¶
enters the lock (may block)
function TryLock¶
tries to enter the lock and returns immediately when not possible
function Unlock¶
leaves the lock
function ~CGlobalLock¶
Protected Attributes Documentation¶
variable m_DebugCount¶
The documentation for this class was generated from the following file /workspace/include/SpinGenApi/GCSynch.h