Salome HOME
projects
/
modules
/
yacs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
copy tag mergefrom_BR_V0_1_CC_Salome_04oct07
[modules/yacs.git]
/
src
/
bases
/
DrivenConditionPT.hxx
1
#ifndef __DRIVENCONDITIONPT_HXX__
2
#define __DRIVENCONDITIONPT_HXX__
3
4
#include <pthread.h>
5
6
namespace YACS
7
{
8
namespace BASES
9
{
10
class DrivenConditionPT
11
{
12
public:
13
DrivenConditionPT();
14
~DrivenConditionPT();
15
//On master thread
16
void waitForAWait();
17
void notifyOneSync();
18
//On slave thread
19
void wait();
20
private:
21
pthread_cond_t _cond1;
22
pthread_cond_t _cond2;
23
pthread_mutex_t _mutexDesc1;
24
pthread_mutex_t _mutexDesc2;
25
};
26
}
27
}
28
29
#endif