ifw-fgf 1.0.0-pre1
Loading...
Searching...
No Matches
semaphore.hpp
Go to the documentation of this file.
1
7#include <semaphore.h>
8#include <fcntl.h>
9
10namespace ifw::fgf::common {
11
15 class Semaphore {
16 public:
17 Semaphore(char name[], unsigned int val);
18 int wait();
19 int post();
20 int tryWait();
21 void close();
22
23 private:
24 sem_t* sem;
25 char* name;
26 };
27
28}
Semaphore class for safe semaphore usage.
Definition semaphore.hpp:15
int tryWait()
Definition semaphore.cpp:41
int wait()
Definition semaphore.cpp:33
Semaphore(char name[], unsigned int val)
Definition semaphore.cpp:26
int post()
Definition semaphore.cpp:37
void close()
Definition semaphore.cpp:45
Frame Grabber Camera Base Class definitions.
Definition binarySemaphore.hpp:43