git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@810 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
f0b21ecfae
commit
7526792805
49 changed files with 449 additions and 420 deletions
|
|
@ -42,8 +42,9 @@ static std :: vector <Thread *> threads;
|
|||
|
||||
unsigned num_act = 0;
|
||||
|
||||
|
||||
Thread :: Thread () {
|
||||
|
||||
|
||||
threads.push_back (this);
|
||||
act = false;
|
||||
}
|
||||
|
|
@ -53,8 +54,6 @@ Thread :: ~ Thread () {
|
|||
/* Nothing ! */
|
||||
}
|
||||
|
||||
extern int getNodeRank ();
|
||||
|
||||
void Thread :: setActive () {
|
||||
|
||||
if (! act) {
|
||||
|
|
@ -70,7 +69,7 @@ void Thread :: setPassive () {
|
|||
|
||||
act = false;
|
||||
num_act --;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void initThreadsEnv () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue