github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/libs/includes/semaphore.h (about) 1 2 #include <time.h> 3 4 typedef struct {} sem_t; 5 6 int sem_close(sem_t *); 7 int sem_destroy(sem_t *); 8 int sem_getvalue(sem_t *, int *); 9 int sem_init(sem_t *, int, unsigned); 10 sem_t *sem_open(const char *, int, ...); 11 int sem_post(sem_t *); 12 int sem_timedwait(sem_t *, const struct timespec *); 13 int sem_trywait(sem_t *); 14 int sem_unlink(const char *); 15 int sem_wait(sem_t *);