1 #ifndef __LUNAIX_SEMAPHORE_H
2 #define __LUNAIX_SEMAPHORE_H
7 _Atomic unsigned int counter;
8 // FUTURE: might need a waiting list
11 void sem_init(struct sem_t *sem, unsigned int initial);
13 void sem_wait(struct sem_t *sem);
15 void sem_post(struct sem_t *sem);
17 #endif /* __LUNAIX_SEMAPHORE_H */