/* =========== */ void w_acquire () { while (atom_exchange32(&m_wlock, 1)); while (m_rlock) atom_rw_barrier(); }
/* ========= */ void acquire () { for (unsigned int kk = 0; atom_exchange32(&m_lock, 1); kk++) m_todo.yield(kk); }