Searched refs:semaphore_t (Results 1 – 13 of 13) sorted by relevance
23 struct semaphore_t;24 typedef struct semaphore_t semaphore_t; typedef29 semaphore_t *semaphore_new(unsigned int value);33 void semaphore_free(semaphore_t *semaphore);37 void semaphore_wait(semaphore_t *semaphore);42 bool semaphore_try_wait(semaphore_t *semaphore);45 void semaphore_post(semaphore_t *semaphore);57 int semaphore_get_fd(const semaphore_t *semaphore);
37 struct semaphore_t { struct41 semaphore_t *semaphore_new(unsigned int value) { in semaphore_new() argument42 semaphore_t *ret = osi_malloc(sizeof(semaphore_t)); in semaphore_new()54 void semaphore_free(semaphore_t *semaphore) { in semaphore_free()63 void semaphore_wait(semaphore_t *semaphore) { in semaphore_wait()72 bool semaphore_try_wait(semaphore_t *semaphore) { in semaphore_try_wait()95 void semaphore_post(semaphore_t *semaphore) { in semaphore_post()103 int semaphore_get_fd(const semaphore_t *semaphore) { in semaphore_get_fd()
32 semaphore_t *enqueue_sem;33 semaphore_t *dequeue_sem;
31 semaphore_t *semaphore; // NULL semaphore means immediate future
48 semaphore_t *start_sem;
74 static semaphore_t *alarm_expired;
66 semaphore_t *semaphore = semaphore_new(0); in init_stack()92 semaphore_t *semaphore = (semaphore_t *)context; in event_init_stack()
58 static semaphore_t *done;59 static semaphore_t *reentry_semaphore;
57 static semaphore_t *done;58 static semaphore_t *reentry_semaphore;
42 static semaphore_t *done;
69 static semaphore_t *done;
29 static semaphore_t *semaphore;