Named global lock which can be used over process boundaries.
#include <GCSynch.h>
|
| | CGlobalLock (const char *pszName) |
| |
| | CGlobalLock (const GENICAM_NAMESPACE::gcstring &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() [1/2]
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/2]
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.