30 #include <sys/types.h>
67 static const Path & getKeyFile();
69 static struct sembuf Pexclusive[1];
70 static struct sembuf Vexclusive[1];
71 static struct sembuf Presource[1];
72 static struct sembuf Vresource[1];
73 static const int NSEMS = 2;
79 unsigned short *array;
80 struct seminfo *__buf;
void release()
release exclusive lock
Definition: ipc.cpp:230
~Semaphore()
Destructor.
Definition: ipc.cpp:179
Mutual exclusion lock.
Definition: ipc.h:111
~SemaphoreLock()
Destructor which releases the lock.
Definition: ipc.cpp:263
Semaphore(char id)
Constructor.
Definition: ipc.cpp:50
Manipulate path strings.
Definition: stringy.h:74
void acquire()
wait until available
Definition: ipc.cpp:206
SemaphoreLock(Semaphore &s)
Constructor which acquires a lock on the supplied semaphore.
Definition: ipc.cpp:255
A semaphore for managing exclusive access to resources across multiple processes. ...
Definition: ipc.h:63