git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@794 331e1502-861f-0410-8da2-ba01fb791d7f

This commit is contained in:
atantar 2007-11-20 13:40:15 +00:00
commit aecc5ba8fc
35 changed files with 498 additions and 262 deletions

View file

@ -39,6 +39,7 @@
#include <semaphore.h>
typedef unsigned COMM_ID;
class Communicable {
@ -56,7 +57,11 @@ public :
void stop (); /* It suspends the current process */
void resume (); /* It resumes ___________ */
public :
static unsigned num_comm;
protected :
COMM_ID key;
@ -64,10 +69,10 @@ protected :
sem_t sem_lock;
sem_t sem_stop;
static unsigned num_comm;
};
extern void initCommunicableEnv ();
extern Communicable * getCommunicable (COMM_ID __key);
//extern COMM_ID getKey (const Communicable * __comm);