change to use static mapping of core # and block # in multicore garbage modul
[IRC.git] / Robust / src / Runtime / psemaphore.h
1 #ifndef ___PSEMAPHORE_H__
2 #define ___PSEMAPHORE_H__
3
4 #include <pthread.h>
5
6
7 typedef struct psemaphore_t {
8   pthread_mutex_t lock;
9   pthread_cond_t  cond;
10   int             signaled;
11 } psemaphore;
12
13
14 int psem_init( psemaphore* sem );
15 int psem_take( psemaphore* sem );
16 int psem_give( psemaphore* sem );
17
18
19 #endif // ___PSEMAPHORE_H__