Home
last modified time | relevance | path

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

/aosp12/bionic/libc/bionic/
H A Dsemaphore.cpp116 atomic_init(sem_count_ptr, count); in sem_init()
143 static int __sem_dec(atomic_uint* sem_count_ptr) { in __sem_dec() argument
163 static int __sem_trydec(atomic_uint* sem_count_ptr) { in __sem_trydec() argument
187 static int __sem_inc(atomic_uint* sem_count_ptr) { in __sem_inc() argument
216 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); in sem_wait()
219 if (__sem_dec(sem_count_ptr) > 0) { in sem_wait()
239 if (__sem_trydec(sem_count_ptr) > 0) { in __sem_timedwait()
254 if (__sem_dec(sem_count_ptr) > 0) { in __sem_timedwait()
293 int old_value = __sem_inc(sem_count_ptr); in sem_post()
296 __futex_wake_ex(sem_count_ptr, shared, INT_MAX); in sem_post()
[all …]