Searched refs:semaphore_t (Results 1 – 9 of 9) sorted by relevance
27 struct semaphore_t;28 typedef struct semaphore_t semaphore_t; typedef33 semaphore_t* semaphore_new(unsigned int value);37 void semaphore_free(semaphore_t* semaphore);41 void semaphore_wait(semaphore_t* semaphore);46 bool semaphore_try_wait(semaphore_t* semaphore);49 void semaphore_post(semaphore_t* semaphore);61 int semaphore_get_fd(const semaphore_t* semaphore);
40 struct semaphore_t { struct44 semaphore_t* semaphore_new(unsigned int value) { in semaphore_new() argument45 semaphore_t* ret = static_cast<semaphore_t*>(osi_malloc(sizeof(semaphore_t))); in semaphore_new()55 void semaphore_free(semaphore_t* semaphore) { in semaphore_free()62 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait()72 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait()97 void semaphore_post(semaphore_t* semaphore) { in semaphore_post()106 int semaphore_get_fd(const semaphore_t* semaphore) { in semaphore_get_fd()
14 semaphore_t* semaphore;41 semaphore_t* semaphore = semaphore_new(0); in TEST_F()47 semaphore_t* semaphore = semaphore_new(3); in TEST_F()59 semaphore_t* semaphore = semaphore_new(0); in TEST_F()71 semaphore_t* semaphore = semaphore_new(0); in TEST_F()79 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
35 class semaphore_t {67 semaphore_t start_sem;80 semaphore_t thread_finish_semaphore;84 semaphore_t work_queue_semaphore;
36 semaphore_t* enqueue_sem;37 semaphore_t* dequeue_sem;
34 semaphore_t* semaphore; // NULL semaphore means immediate future
55 semaphore_t* start_sem;
122 static semaphore_t* alarm_expired;
34 static semaphore_t* semaphore;