Searched refs:sem (Results 1 – 5 of 5) sorted by relevance
/bionic/libc/bionic/ |
D | semaphore.cpp | 88 static inline atomic_uint* SEM_TO_ATOMIC_POINTER(sem_t* sem) { in SEM_TO_ATOMIC_POINTER() argument 89 static_assert(sizeof(atomic_uint) == sizeof(sem->count), in SEM_TO_ATOMIC_POINTER() 94 return reinterpret_cast<atomic_uint*>(&sem->count); in SEM_TO_ATOMIC_POINTER() 103 int sem_init(sem_t* sem, int pshared, unsigned int value) { in sem_init() argument 115 atomic_uint* sem_count_ptr = SEM_TO_ATOMIC_POINTER(sem); in sem_init() 214 int sem_wait(sem_t* sem) { in sem_wait() argument 215 atomic_uint* sem_count_ptr = SEM_TO_ATOMIC_POINTER(sem); in sem_wait() 233 static int __sem_timedwait(sem_t* sem, const timespec* abs_timeout, bool use_realtime_clock) { in __sem_timedwait() argument 234 atomic_uint* sem_count_ptr = SEM_TO_ATOMIC_POINTER(sem); in __sem_timedwait() 270 int sem_timedwait(sem_t* sem, const timespec* abs_timeout) { in sem_timedwait() argument [all …]
|
/bionic/tests/ |
D | semaphore_test.cpp | 73 static void SemWaitThreadTestFn(sem_t& sem) { in SemWaitThreadTestFn() argument 74 ASSERT_EQ(0, sem_wait(&sem)); in SemWaitThreadTestFn() 203 sem_t* sem = reinterpret_cast<sem_t*>(arg); in SemWaitEINTRThreadFn() local 207 int result = sem_wait(sem); in SemWaitEINTRThreadFn()
|
D | malloc_test.cpp | 1512 sem_t sem; in TEST() local 1513 ASSERT_EQ(0, sem_init(&sem, 0, 0)); in TEST() 1519 auto* sem = reinterpret_cast<sem_t*>(ptr); in TEST() local 1520 sem_wait(sem); in TEST() 1523 &sem)); in TEST() 1526 ASSERT_EQ(0, sem_post(&sem)); in TEST()
|
/bionic/libc/kernel/uapi/linux/ |
D | sem.h | 25 struct sem * sem_base;
|
/bionic/docs/ |
D | status.md | 185 * 4 <sys/sem.h> `sem*` functions
|