Searched refs:semaphore_try_wait (Results 1 – 5 of 5) sorted by relevance
45 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F()46 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F()47 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F()48 EXPECT_FALSE(semaphore_try_wait(semaphore)); in TEST_F()57 EXPECT_FALSE(semaphore_try_wait(semaphore)); in TEST_F()59 EXPECT_TRUE(semaphore_try_wait(semaphore)); in TEST_F()60 EXPECT_FALSE(semaphore_try_wait(semaphore)); in TEST_F()80 EXPECT_FALSE(semaphore_try_wait(semaphore)); in TEST_F()
42 bool semaphore_try_wait(semaphore_t* semaphore);
151 if (!semaphore_try_wait(queue->enqueue_sem)) return false; in fixed_queue_try_enqueue()165 if (!semaphore_try_wait(queue->dequeue_sem)) return NULL; in fixed_queue_try_dequeue()200 semaphore_try_wait(queue->dequeue_sem)) { in fixed_queue_try_remove_from_queue()
70 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait() function
76 while (semaphore_try_wait(sem)) in ClearSemaphore()