1 #include "SemaphorePT.hxx"
3 using namespace YACS::BASES;
5 SemaphorePT::SemaphorePT(int initValue)
7 sem_init(&_semDesc, 0, initValue);
10 SemaphorePT::~SemaphorePT()
12 sem_destroy(&_semDesc);
15 void SemaphorePT::post()
20 void SemaphorePT::wait()
25 int SemaphorePT::getValue()
28 sem_getvalue(&_semDesc,&val);