Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
Sem.h
Go to the documentation of this file.
1 #ifndef SEMPAHORE_H
2 #define SEMPAHORE_H
3 
4 #include <semaphore.h>
5 #include "Types.h"
6 
8 {
9 public:
10  tcSemaphore(int32 anDefaultCnt = 0);
11 
12  ~tcSemaphore();
13 
14  void acquire(int32 anCnt = 1);
15  void release(int32 anCnt = 1);
16 
17 private:
18  sem_t mhSemaphore;
19 };
20 
21 #endif // SEMPAHORE_H
int32
int32_t int32
Definition: Types.h:8
Types.h
tcSemaphore::acquire
void acquire(int32 anCnt=1)
Definition: Semaphore.cpp:13
tcSemaphore
Definition: Sem.h:7
tcSemaphore::release
void release(int32 anCnt=1)
Definition: Semaphore.cpp:20
tcSemaphore::tcSemaphore
tcSemaphore(int32 anDefaultCnt=0)
Definition: Semaphore.cpp:3
tcSemaphore::~tcSemaphore
~tcSemaphore()
Definition: Semaphore.cpp:8