Public Member Functions | Protected Attributes | Private Member Functions
GENICAM_NAMESPACE::CGlobalLock Class Reference

Named global lock which can be used over process boundaries. More...

#include <GCSynch.h>

List of all members.

Public Member Functions

 CGlobalLock (const char *pszName)
 Creates a global lock object name pszName.
 CGlobalLock (const GENICAM_NAMESPACE::gcstring &strName)
 Creates a global lock object name strName.
bool IsValid (void) const
 tests whether the lock is valid
bool Lock (unsigned int timeout_ms)
 enters the lock (may block)
bool TryLock (void)
 tries to enter the lock and returns immediately when not possible
void Unlock (void)
 leaves the lock
 ~CGlobalLock ()

Protected Attributes

long m_DebugCount

Private Member Functions

 CGlobalLock (const CGlobalLock &)
CGlobalLockoperator= (const CGlobalLock &)

Detailed Description

Named global lock which can be used over process boundaries.

Definition at line 209 of file GCSynch.h.


Constructor & Destructor Documentation

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.

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.


Member Function Documentation

tests whether the lock is valid

bool GENICAM_NAMESPACE::CGlobalLock::Lock ( unsigned int  timeout_ms)

enters the lock (may block)

CGlobalLock& GENICAM_NAMESPACE::CGlobalLock::operator= ( const CGlobalLock ) [private]

tries to enter the lock and returns immediately when not possible

leaves the lock


Member Data Documentation

Definition at line 266 of file GCSynch.h.


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


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 18:42:49