Home
last modified time | relevance | path

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

/bionic/libc/bionic/
D__cxa_guard.cpp82 int old_value = atomic_load_explicit(&gv->state, memory_order_acquire); in __cxa_guard_acquire() local
88 if (old_value == CONSTRUCTION_COMPLETE) { in __cxa_guard_acquire()
90 } else if (old_value == CONSTRUCTION_NOT_YET_STARTED) { in __cxa_guard_acquire()
91 if (!atomic_compare_exchange_weak_explicit(&gv->state, &old_value, in __cxa_guard_acquire()
98 } else if (old_value == CONSTRUCTION_UNDERWAY_WITHOUT_WAITER) { in __cxa_guard_acquire()
99 if (!atomic_compare_exchange_weak_explicit(&gv->state, &old_value, in __cxa_guard_acquire()
108 old_value = atomic_load_explicit(&gv->state, memory_order_acquire); in __cxa_guard_acquire()
115 int old_value = atomic_exchange_explicit(&gv->state, CONSTRUCTION_COMPLETE, memory_order_release); in __cxa_guard_release() local
116 if (old_value == CONSTRUCTION_UNDERWAY_WITH_WAITER) { in __cxa_guard_release()
124 …int old_value = atomic_exchange_explicit(&gv->state, CONSTRUCTION_NOT_YET_STARTED, memory_order_re… in __cxa_guard_abort() local
[all …]
Dsemaphore.cpp144 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_dec() local
145 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_dec()
152 if (SEMCOUNT_TO_VALUE(old_value) < 0) { in __sem_dec()
155 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_dec()
156 SEMCOUNT_DECREMENT(old_value) | shared)); in __sem_dec()
158 return SEMCOUNT_TO_VALUE(old_value); in __sem_dec()
164 unsigned int old_value = atomic_load_explicit(sem_count_ptr, memory_order_relaxed); in __sem_trydec() local
165 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_trydec()
172 if (SEMCOUNT_TO_VALUE(old_value) <= 0) { in __sem_trydec()
175 } while (!atomic_compare_exchange_weak(sem_count_ptr, &old_value, in __sem_trydec()
[all …]
Dpthread_once.cpp54 int old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once() local
57 if (__predict_true(old_value == ONCE_INITIALIZATION_COMPLETE)) { in pthread_once()
63 if (!atomic_compare_exchange_weak_explicit(once_control_ptr, &old_value, in pthread_once()
69 if (old_value == ONCE_INITIALIZATION_NOT_YET_STARTED) { in pthread_once()
82 __futex_wait_ex(once_control_ptr, 0, old_value, false, nullptr); in pthread_once()
83 old_value = atomic_load_explicit(once_control_ptr, memory_order_acquire); in pthread_once()
Dlibc_init_common.cpp284 int old_value = personality(0xffffffff); in __initialize_personality() local
285 if (old_value == -1) { in __initialize_personality()
289 if (personality((static_cast<unsigned int>(old_value) & ~PER_MASK) | PER_LINUX32) == -1) { in __initialize_personality()
Dpthread_internal.h77 pid_t old_value; in invalidate_cached_pid() local
78 get_cached_pid(&old_value); in invalidate_cached_pid()
80 return old_value; in invalidate_cached_pid()
Dbionic_elf_tls.cpp168 const size_t old_value = value; in round_up_with_overflow_check() local
170 if (value < old_value) overflowed_ = true; in round_up_with_overflow_check()
/bionic/linker/
Dlinker_logger.cpp96 bool old_value = g_greylist_disabled; in ResetState() local
98 if (g_greylist_disabled != old_value) { in ResetState()
Ddlfcn.cpp99 char* old_value = __get_thread()->current_dlerror; in __bionic_set_dlerror() local
103 return old_value; in __bionic_set_dlerror()
118 char* old_value = __bionic_set_dlerror(nullptr); in __loader_dlerror() local
119 return old_value; in __loader_dlerror()