ifw-fgf 2.0.0
 
Loading...
Searching...
No Matches
semaphore.hpp
Go to the documentation of this file.
1
8
9#include <semaphore.h>
10#include <fcntl.h>
11
12namespace ifw::fgf::common {
13
17 class Semaphore {
18 public:
19 Semaphore(char name[], unsigned int val);
20 int wait();
21 int post();
22 int tryWait();
23 void close();
24
25 private:
26 sem_t* sem;
27 char* name;
28 };
29
30}
int tryWait()
Definition semaphore.cpp:42
int wait()
Definition semaphore.cpp:34
Semaphore(char name[], unsigned int val)
Definition semaphore.cpp:27
int post()
Definition semaphore.cpp:38
void close()
Definition semaphore.cpp:46
Definition binarySemaphore.hpp:45