 |
Belle II Software
release-05-02-19
|
25 static int create(key_t semkey);
~SemaphoreLocker()
Unlock.
Abstract base class for different kinds of events.
int m_id
semaphore id, see semget(2).
Handles creation, locking and unlocking of System V semaphores.
void unlock()
Unlock the semaphore.
SemaphoreLocker(int semId)
Lock the given semaphore.
void lock()
Lock the semaphore.
static bool isLocked(int semId)
Return true if the given semaphore is locked.
static int create(key_t semkey)
Create a new semaphore and initialize it.
static void destroy(int semId)
Destroy the given semaphore.