Named global lock which can be used over process boundaries.
More...
#include <GCSynch.h>
|
| CGlobalLock (const char *pszName) |
| 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. More...
|
|
| CGlobalLock (const GENICAM_NAMESPACE::gcstring &strName) |
| 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. More...
|
|
bool | IsValid (void) const |
| tests whether the lock is valid More...
|
|
bool | Lock (unsigned int timeout_ms) |
| enters the lock (may block) More...
|
|
bool | TryLock (void) |
| tries to enter the lock and returns immediately when not possible More...
|
|
void | Unlock (void) |
| leaves the lock More...
|
|
| ~CGlobalLock () |
|
Named global lock which can be used over process boundaries.
Definition at line 209 of file GCSynch.h.
◆ CGlobalLock() [1/3]
GENICAM_NAMESPACE::CGlobalLock::CGlobalLock |
( |
const char * |
pszName | ) |
|
|
explicit |
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.
◆ 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.
◆ ~CGlobalLock()
GENICAM_NAMESPACE::CGlobalLock::~CGlobalLock |
( |
| ) |
|
◆ CGlobalLock() [3/3]
GENICAM_NAMESPACE::CGlobalLock::CGlobalLock |
( |
const CGlobalLock & |
| ) |
|
|
private |
◆ IsValid()
bool GENICAM_NAMESPACE::CGlobalLock::IsValid |
( |
void |
| ) |
const |
tests whether the lock is valid
◆ Lock()
bool GENICAM_NAMESPACE::CGlobalLock::Lock |
( |
unsigned int |
timeout_ms | ) |
|
enters the lock (may block)
◆ operator=()
◆ TryLock()
bool GENICAM_NAMESPACE::CGlobalLock::TryLock |
( |
void |
| ) |
|
tries to enter the lock and returns immediately when not possible
◆ Unlock()
void GENICAM_NAMESPACE::CGlobalLock::Unlock |
( |
void |
| ) |
|
◆ m_DebugCount
long GENICAM_NAMESPACE::CGlobalLock::m_DebugCount |
|
mutableprotected |
The documentation for this class was generated from the following file: