Searched defs:semaphore (Results 1 - 1 of 1) 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);

Completed in 2 milliseconds