Searched refs:atomic_load (Results 1 - 25 of 48) sorted by relevance

12

/fuchsia/zircon/third_party/ulib/musl/src/thread/
H A D__wait.c6 while (spins-- && (!waiters || !atomic_load(waiters))) {
7 if (atomic_load(futex) == current_value)
14 while (atomic_load(futex) == current_value) {
H A Dtss.c41 if (self->tsd[i] && atomic_load(&keys[i])) {
44 atomic_load(&keys[i])(tmp);
H A Dcall_once.c39 if (atomic_load(control) == STATE_DONE) {
/fuchsia/zircon/third_party/ulib/musl/pthread/
H A Dpthread_spin_lock.c5 while (atomic_load(s) || a_cas_shim(s, 0, EBUSY))
H A Dsem_post.c8 val = atomic_load(&sem->_s_value);
9 waiters = atomic_load(&sem->_s_waiters);
H A Dsem_trywait.c6 while ((val = atomic_load(&sem->_s_value)) > 0) {
7 int new = val - 1 - (val == 1 && atomic_load(&sem->_s_waiters));
H A Dpthread_rwlock_timedwrlock.c11 while (spins-- && atomic_load(&rw->_rw_lock) && !atomic_load(&rw->_rw_waiters))
15 if (!(r = atomic_load(&rw->_rw_lock)))
H A Dsem_getvalue.c6 int val = atomic_load(&sem->_s_value);
H A Dpthread_mutex_unlock.c6 int waiters = atomic_load(&m->_m_waiters);
11 if ((atomic_load(&m->_m_lock) & PTHREAD_MUTEX_OWNED_LOCK_MASK) != __thread_get_tid())
H A Dpthread_rwlock_unlock.c8 val = atomic_load(&rw->_rw_lock);
10 waiters = atomic_load(&rw->_rw_waiters);
H A Dsem_timedwait.c13 while (spins-- && atomic_load(&sem->_s_value) <= 0 && !atomic_load(&sem->_s_waiters))
H A Dpthread_barrier_wait.c35 if (atomic_load(&b->_b_waiters))
37 while (spins-- && !atomic_load(&inst->finished))
40 while (atomic_load(&inst->finished) == 1)
52 if (atomic_load(&b->_b_waiters))
59 if (atomic_load(&b->_b_waiters))
H A Dpthread_mutex_timedlock.c15 while (spins-- && atomic_load(&m->_m_lock) && !atomic_load(&m->_m_waiters))
19 if (!(r = atomic_load(&m->_m_lock)))
H A Dpthread_rwlock_timedrdlock.c11 while (spins-- && atomic_load(&rw->_rw_lock) && !atomic_load(&rw->_rw_waiters))
15 if (!(r = atomic_load(&rw->_rw_lock)) || (r & PTHREAD_MUTEX_OWNED_LOCK_MASK) != PTHREAD_MUTEX_OWNED_LOCK_MASK)
H A Dpthread_rwlock_tryrdlock.c6 val = atomic_load(&rw->_rw_lock);
H A Dpthread_mutex_trylock.c8 old = atomic_load(&m->_m_lock);
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A Dftrylockfile.c13 if (atomic_load(&f->lock) < 0)
15 if (atomic_load(&f->lock) || a_cas_shim(&f->lock, 0, tid))
H A Dfgetc.c5 if (atomic_load(&f->lock) < 0 || !__lockfile(f))
H A Dfputc.c4 if (atomic_load(&f->lock) < 0 || !__lockfile(f))
H A Dgetc.c5 if (atomic_load(&f->lock) < 0 || !__lockfile(f))
H A D__lockfile.c7 if (atomic_load(&f->lock) == tid)
26 if (atomic_load(&f->waiters))
H A Dputc.c4 if (atomic_load(&f->lock) < 0 || !__lockfile(f))
/fuchsia/zircon/system/ulib/sync/
H A Dcompletion.c29 int32_t current_value = atomic_load(futex);
/fuchsia/zircon/kernel/include/kernel/
H A Dmp.h150 return atomic_load((volatile int*)&mp.online_cpus);
167 return atomic_load((volatile int*)&mp.active_cpus);
/fuchsia/zircon/kernel/tests/
H A Dtimer_tests.cpp225 while (!atomic_load(&args->timer_stress_done)) {
320 ASSERT_FALSE(atomic_load(&arg.timer_fired), "");
330 while (!atomic_load(&arg.timer_fired)) {
349 while (!atomic_load(&arg.timer_fired)) {
370 while (atomic_load(&arg.remaining) > 0) {
382 while (atomic_load(&arg->wait)) {
425 while (!atomic_load(&arg.timer_fired)) {
472 while (!atomic_load(&arg.timer_fired)) {

Completed in 107 milliseconds

12