Home
last modified time | relevance | path

Searched refs:mutex_head (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-aio-multithread.c297 static int mutex_head = -1; variable
305 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()
/openbmc/qemu/replay/
H A Dreplay-internal.c27 static unsigned long mutex_head, mutex_tail; variable
224 while (id != mutex_head) { in replay_mutex_lock()
237 ++mutex_head; in replay_mutex_unlock()