Searched refs:semaphore (Results 1 – 3 of 3) sorted by relevance
/bionic/benchmarks/ |
D | semaphore_benchmark.cpp | 27 sem_t semaphore; in BM_semaphore_sem_getvalue() local 28 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_getvalue() 32 sem_getvalue(&semaphore, &dummy); 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() 74 sem_t* semaphore = reinterpret_cast<sem_t*>(arg); in BM_semaphore_sem_post_start_thread() local 75 while ((BM_semaphore_sem_post_running > 0) && !sem_wait(semaphore)) { in BM_semaphore_sem_post_start_thread() 84 sem_init(&semaphore, 0, 0); in SetUp() [all …]
|
/bionic/tests/ |
D | semaphore_test.cpp | 29 TEST(semaphore, sem_init) { in TEST() argument 55 TEST(semaphore, sem_trywait) { in TEST() argument 76 TEST(semaphore, sem_wait__sem_post) { in TEST() argument 136 TEST(semaphore, sem_timedwait) { in TEST() argument 140 TEST(semaphore, sem_timedwait_monotonic_np) { in TEST() argument 155 TEST(semaphore, sem_getvalue) { in TEST() argument 202 TEST(semaphore, sem_wait_no_EINTR_in_sdk_less_equal_than_23) { in TEST() argument 224 TEST(semaphore, sem_wait_EINTR_in_sdk_greater_than_23) { in TEST() argument
|
/bionic/libc/ |
D | Android.bp | 1120 "bionic/semaphore.cpp",
|