Searched refs:mutex_head (Results 1 – 2 of 2) sorted by relevance
297 static int mutex_head = -1; variable305 prev = qatomic_xchg(&mutex_head, id); in mcs_mutex_lock()316 if (qatomic_read(&mutex_head) == id && in mcs_mutex_unlock()317 qatomic_cmpxchg(&mutex_head, id, -1) == id) { in mcs_mutex_unlock()349 assert(mutex_head == -1); in test_multi_fair_mutex()
27 static unsigned long mutex_head, mutex_tail; variable224 while (id != mutex_head) { in replay_mutex_lock()237 ++mutex_head; in replay_mutex_unlock()