Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR: what YACS means
[modules/yacs.git]
/
src
/
bases
/
SemaphorePT.hxx
1
#ifndef __SEMAPHOREPT_HXX__
2
#define __SEMAPHOREPT_HXX__
3
4
#include <semaphore.h>
5
6
namespace YACS
7
{
8
namespace BASES
9
{
10
class SemaphorePT
11
{
12
public:
13
SemaphorePT(int initValue=0);
14
~SemaphorePT();
15
void post();
16
void wait();
17
int getValue();
18
private:
19
sem_t _semDesc;
20
};
21
}
22
}
23
24
#endif