Searched refs:sem_t (Results 1 – 7 of 7) sorted by relevance
/bionic/libc/include/ |
D | semaphore.h | 44 } sem_t; typedef 46 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0) 48 int sem_clockwait(sem_t* _Nonnull __sem, clockid_t __clock, const struct timespec* _Nonnull __ts) _… 49 int sem_destroy(sem_t* _Nonnull __sem); 50 int sem_getvalue(sem_t* _Nonnull __sem, int* _Nonnull __value); 51 int sem_init(sem_t* _Nonnull __sem, int __shared, unsigned int __value); 52 int sem_post(sem_t* _Nonnull __sem); 53 int sem_timedwait(sem_t* _Nonnull __sem, const struct timespec* _Nonnull __ts); 62 int sem_timedwait_monotonic_np(sem_t* _Nonnull __sem, const struct timespec* _Nonnull __ts) __INTRO… 63 int sem_trywait(sem_t* _Nonnull __sem); [all …]
|
/bionic/tests/headers/posix/ |
D | semaphore_h.c | 34 TYPE(sem_t); in semaphore_h() 38 FUNCTION(sem_close, int (*f)(sem_t*)); in semaphore_h() 39 FUNCTION(sem_destroy, int (*f)(sem_t*)); in semaphore_h() 40 FUNCTION(sem_getvalue, int (*f)(sem_t*, int*)); in semaphore_h() 41 FUNCTION(sem_init, int (*f)(sem_t*, int, unsigned)); in semaphore_h() 42 FUNCTION(sem_open, sem_t* (*f)(const char*, int, ...)); in semaphore_h() 43 FUNCTION(sem_post, int (*f)(sem_t*)); in semaphore_h() 44 FUNCTION(sem_timedwait, int (*f)(sem_t*, const struct timespec*)); in semaphore_h() 45 FUNCTION(sem_trywait, int (*f)(sem_t*)); in semaphore_h() 47 FUNCTION(sem_wait, int (*f)(sem_t*)); in semaphore_h()
|
/bionic/libc/bionic/ |
D | semaphore.cpp | 88 static inline atomic_uint* SEM_TO_ATOMIC_POINTER(sem_t* sem) { in SEM_TO_ATOMIC_POINTER() 103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() 120 int sem_destroy(sem_t*) { in sem_destroy() argument 124 sem_t* sem_open(const char*, int, ...) { in sem_open() 129 int sem_close(sem_t*) { in sem_close() argument 214 int sem_wait(sem_t* sem) { in sem_wait() 233 static int __sem_timedwait(sem_t* sem, const timespec* abs_timeout, bool use_realtime_clock) { in __sem_timedwait() 270 int sem_timedwait(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait() 274 int sem_timedwait_monotonic_np(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait_monotonic_np() 278 int sem_clockwait(sem_t* sem, clockid_t clock, const timespec* abs_timeout) { in sem_clockwait() [all …]
|
D | pthread_internal.cpp | 216 static sem_t g_sem; in android_run_on_all_threads()
|
/bionic/tests/ |
D | semaphore_test.cpp | 36 sem_t s; in TEST() 62 sem_t s; in TEST() 73 static void SemWaitThreadTestFn(sem_t& sem) { in SemWaitThreadTestFn() 78 SemWaitThreadTestFn(*reinterpret_cast<sem_t*>(arg)); in SemWaitThreadFn() 83 sem_t s; in TEST() 111 int (*wait_function)(sem_t* __sem, const timespec* __ts)) { in sem_timedwait_helper() 112 sem_t s; in sem_timedwait_helper() 156 sem_timedwait_helper(CLOCK_MONOTONIC, [](sem_t* __sem, const timespec* __ts) { in TEST() 159 sem_timedwait_helper(CLOCK_REALTIME, [](sem_t* __sem, const timespec* __ts) { in TEST() 168 sem_t s; in TEST_F() [all …]
|
D | malloc_test.cpp | 1512 sem_t sem; in TEST() 1519 auto* sem = reinterpret_cast<sem_t*>(ptr); in TEST()
|
/bionic/benchmarks/ |
D | semaphore_benchmark.cpp | 27 sem_t semaphore; in BM_semaphore_sem_getvalue() 38 sem_t semaphore; in BM_semaphore_sem_wait_sem_post()
|