Searched refs:semaphore (Results 1 - 3 of 3) sorted by relevance

/bionic/benchmarks/
H A Dsemaphore_benchmark.cpp19 #include <semaphore.h>
23 sem_t semaphore; local
24 sem_init(&semaphore, 1, 1);
29 sem_getvalue(&semaphore, &dummy);
38 sem_t semaphore; local
39 sem_init(&semaphore, 1, 1);
43 sem_wait(&semaphore);
44 sem_post(&semaphore);
/bionic/libc/bionic/
H A Dsemaphore.c28 #include <semaphore.h>
37 /* In this implementation, a semaphore contains a
42 * semaphore, 0 or more to indicate uncontended state,
65 /* Maximum unsigned value that can be stored in the semaphore.
86 /* return the shared bitflag from a semaphore */
97 /* ensure that 'value' can be stored in the semaphore */
154 /* Decrement a semaphore's value atomically,
206 /* "Increment" the value of a semaphore atomically and
242 /* lock a semaphore */
273 /* POSIX says we need to try to decrement the semaphore
[all...]
/bionic/libc/
H A DAndroid.mk58 bionic/semaphore.c \

Completed in 45 milliseconds