Searched refs:sem_count_ptr (Results 1 – 1 of 1) sorted by relevance
98 static inline unsigned int SEM_GET_SHARED(atomic_uint* sem_count_ptr) { in SEM_GET_SHARED() argument100 return (atomic_load_explicit(sem_count_ptr, memory_order_relaxed) & SEMCOUNT_SHARED_MASK); in SEM_GET_SHARED()115 atomic_uint* sem_count_ptr = SEM_TO_ATOMIC_POINTER(sem); in sem_init() local116 atomic_init(sem_count_ptr, count); in sem_init()143 static int __sem_dec(atomic_uint* sem_count_ptr) { in __sem_dec() argument144 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_dec()155 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_dec()163 static int __sem_trydec(atomic_uint* sem_count_ptr) { in __sem_trydec() argument164 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_trydec()175 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_trydec()[all …]