Searched refs:waiters (Results 1 – 3 of 3) sorted by relevance
240 int waiters, i; in qemu_co_mutex_lock() local251 waiters = qatomic_cmpxchg(&mutex->locked, 0, 1); in qemu_co_mutex_lock()252 if (waiters != 0) { in qemu_co_mutex_lock()253 while (waiters == 1 && ++i < 1000) { in qemu_co_mutex_lock()262 waiters = qatomic_fetch_inc(&mutex->locked); in qemu_co_mutex_lock()265 if (waiters == 0) { in qemu_co_mutex_lock()
116 * If event stayed always true, the waiters would be busy looping.117 * If event stayed always false, the waiters would be sleeping
128 * If event stayed always true, the waiters would be busy looping.129 * If event stayed always false, the waiters would be sleeping