Searched refs:semaphore (Results 1 – 3 of 3) sorted by relevance
/bionic/benchmarks/ |
D | semaphore_benchmark.cpp | 26 sem_t semaphore; in BM_semaphore_sem_getvalue() local 27 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_getvalue() 31 sem_getvalue(&semaphore, &dummy); in BM_semaphore_sem_getvalue() 37 sem_t semaphore; in BM_semaphore_sem_wait_sem_post() local 38 sem_init(&semaphore, 1, 1); in BM_semaphore_sem_wait_sem_post() 41 sem_wait(&semaphore); in BM_semaphore_sem_wait_sem_post() 42 sem_post(&semaphore); in BM_semaphore_sem_wait_sem_post() 73 sem_t* semaphore = reinterpret_cast<sem_t*>(arg); in BM_semaphore_sem_post_start_thread() local 74 while ((BM_semaphore_sem_post_running > 0) && !sem_wait(semaphore)) { in BM_semaphore_sem_post_start_thread() 83 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 104 TEST(semaphore, sem_timedwait) { in TEST() argument 142 TEST(semaphore, sem_getvalue) { in TEST() argument 189 TEST(semaphore, sem_wait_no_EINTR_in_sdk_less_equal_than_23) { in TEST() argument 211 TEST(semaphore, sem_wait_EINTR_in_sdk_greater_than_23) { in TEST() argument
|
/bionic/libc/ |
D | Android.bp | 1445 "bionic/semaphore.cpp",
|