Home
last modified time | relevance | path

Searched refs:sem_t (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/include/
Dsemaphore.h44 } sem_t; typedef
46 #define SEM_FAILED __BIONIC_CAST(reinterpret_cast, sem_t*, 0)
48 int sem_clockwait(sem_t* __sem, clockid_t __clock, const struct timespec* __ts) __INTRODUCED_IN(30);
49 int sem_destroy(sem_t* __sem);
50 int sem_getvalue(sem_t* __sem, int* __value);
51 int sem_init(sem_t* __sem, int __shared, unsigned int __value);
52 int sem_post(sem_t* __sem);
53 int sem_timedwait(sem_t* __sem, const struct timespec* __ts);
62 int sem_timedwait_monotonic_np(sem_t* __sem, const struct timespec* __ts) __INTRODUCED_IN(28);
63 int sem_trywait(sem_t* __sem);
[all …]
/bionic/tests/headers/posix/
Dsemaphore_h.c34 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/
Dsemaphore.cpp88 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 …]
/bionic/tests/
Dsemaphore_test.cpp30 sem_t s; in TEST()
56 sem_t s; in TEST()
67 static void SemWaitThreadTestFn(sem_t& sem) { in SemWaitThreadTestFn()
72 SemWaitThreadTestFn(*reinterpret_cast<sem_t*>(arg)); in SemWaitThreadFn()
77 sem_t s; in TEST()
105 int (*wait_function)(sem_t* __sem, const timespec* __ts)) { in sem_timedwait_helper()
106 sem_t s; in sem_timedwait_helper()
150 sem_timedwait_helper(CLOCK_MONOTONIC, [](sem_t* __sem, const timespec* __ts) { in TEST()
153 sem_timedwait_helper(CLOCK_REALTIME, [](sem_t* __sem, const timespec* __ts) { in TEST()
162 sem_t s; in TEST()
[all …]
/bionic/benchmarks/
Dsemaphore_benchmark.cpp27 sem_t semaphore; in BM_semaphore_sem_getvalue()
38 sem_t semaphore; in BM_semaphore_sem_wait_sem_post()