Home
last modified time | relevance | path

Searched refs:semaphore (Results 1 – 4 of 4) sorted by relevance

/bionic/benchmarks/
Dsemaphore_benchmark.cpp27 sem_t semaphore; in BM_semaphore_sem_getvalue() local
28 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_getvalue()
32 sem_getvalue(&semaphore, &unused); in BM_semaphore_sem_getvalue()
38 sem_t semaphore; in BM_semaphore_sem_wait_sem_post() local
39 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_wait_sem_post()
42 sem_wait(&semaphore); in BM_semaphore_sem_wait_sem_post()
43 sem_post(&semaphore); in BM_semaphore_sem_wait_sem_post()
/bionic/tests/
Dsemaphore_test.cpp35 TEST(semaphore, sem_init) { in TEST() argument
61 TEST(semaphore, sem_trywait) { in TEST() argument
82 TEST(semaphore, sem_wait__sem_post) { in TEST() argument
142 TEST(semaphore, sem_timedwait) { in TEST() argument
146 TEST(semaphore, sem_timedwait_monotonic_np) { in TEST() argument
154 TEST(semaphore, sem_clockwait) { in TEST() argument
176 TEST(semaphore, sem_getvalue) { in TEST() argument
223 TEST(semaphore, sem_wait_no_EINTR_in_sdk_less_equal_than_23) { in TEST() argument
245 TEST(semaphore, sem_wait_EINTR_in_sdk_greater_than_23) { in TEST() argument
Deventfd_test.cpp73 TEST(eventfd, semaphore) { in TEST() argument
/bionic/libc/
DAndroid.bp937 "bionic/semaphore.cpp",