Searched refs:semaphore (Results 1 - 4 of 4) sorted by relevance
/bionic/benchmarks/ |
H A D | semaphore_benchmark.cpp | 18 #include <semaphore.h> 26 sem_t semaphore; local 27 sem_init(&semaphore, 1, 1); 31 sem_getvalue(&semaphore, &dummy); 37 sem_t semaphore; local 38 sem_init(&semaphore, 1, 1); 41 sem_wait(&semaphore); 42 sem_post(&semaphore); 73 sem_t* semaphore = reinterpret_cast<sem_t*>(arg); local 74 while ((BM_semaphore_sem_post_running > 0) && !sem_wait(semaphore)) { 113 sem_t semaphore; member in class:SemaphoreFixture [all...] |
/bionic/tests/ |
H A D | semaphore_test.cpp | 17 #include <semaphore.h> 29 TEST(semaphore, sem_init) { 55 TEST(semaphore, sem_trywait) { 76 TEST(semaphore, sem_wait__sem_post) { 104 TEST(semaphore, sem_timedwait) { 142 TEST(semaphore, sem_getvalue) { 189 TEST(semaphore, sem_wait_no_EINTR_in_sdk_less_equal_than_23) { 211 TEST(semaphore, sem_wait_EINTR_in_sdk_greater_than_23) {
|
/bionic/libc/bionic/ |
H A D | semaphore.cpp | 35 #include <semaphore.h> 47 // In this implementation, a semaphore contains a 52 // semaphore, 0 or more to indicate uncontended state, 94 // Because using the second method pollutes semaphore.h. 98 // Return the shared bitflag from a semaphore counter. 105 // Ensure that 'value' can be stored in the semaphore. 140 // Decrement a semaphore's value atomically, 182 // "Increment" the value of a semaphore atomically and 237 // POSIX says we need to try to decrement the semaphore 254 // Try to grab the semaphore [all...] |
/bionic/libc/ |
H A D | Android.mk | 197 bionic/semaphore.cpp \
|
Completed in 638 milliseconds