Lines Matching refs:atomic_sim_lock
137 static pthread_mutex_t atomic_sim_lock = PTHREAD_MUTEX_INITIALIZER; variable
144 pthread_mutex_lock(&atomic_sim_lock); \
146 pthread_mutex_unlock(&atomic_sim_lock); \
160 pthread_mutex_lock(&atomic_sim_lock); \ in IMPL_fallback_atomic_load_n()
163 pthread_mutex_unlock(&atomic_sim_lock); \ in IMPL_fallback_atomic_load_n()
174 pthread_mutex_lock(&atomic_sim_lock); \
176 pthread_mutex_unlock(&atomic_sim_lock); \
188 pthread_mutex_lock(&atomic_sim_lock); \
191 pthread_mutex_unlock(&atomic_sim_lock); \
210 pthread_mutex_lock(&atomic_sim_lock);
213 pthread_mutex_unlock(&atomic_sim_lock);
223 pthread_mutex_lock(&atomic_sim_lock); in fallback_atomic_fetch_add()
226 pthread_mutex_unlock(&atomic_sim_lock); in fallback_atomic_fetch_add()
236 pthread_mutex_lock(&atomic_sim_lock); in fallback_atomic_sub_fetch()
239 pthread_mutex_unlock(&atomic_sim_lock); in fallback_atomic_sub_fetch()
249 pthread_mutex_lock(&atomic_sim_lock); in fallback_atomic_and_fetch()
252 pthread_mutex_unlock(&atomic_sim_lock); in fallback_atomic_and_fetch()
262 pthread_mutex_lock(&atomic_sim_lock); in fallback_atomic_or_fetch()
265 pthread_mutex_unlock(&atomic_sim_lock); in fallback_atomic_or_fetch()