Lines Matching defs:UNLOCKED
34 UNLOCKED = 0,
81 if (mutex->lock != UNLOCKED) {
101 if (atomic_cas_uint(&mutex->lock, UNLOCKED, LOCKED) == UNLOCKED) {
173 if (mutex->lock == UNLOCKED)
179 lock = atomic_cas_uint(&mutex->lock, UNLOCKED, LOCKED);
180 if (lock == UNLOCKED) {
191 while (lock != UNLOCKED) {
279 if (atomic_dec_int_nv(&mutex->lock) != UNLOCKED) {
280 mutex->lock = UNLOCKED;