| HD | mop.cpp | 19 static volatile long turn; in thread() local 24 int t = __atomic_load_n(&turn, __ATOMIC_ACQUIRE); in thread() 27 syscall(SYS_futex, &turn, FUTEX_WAIT, t, 0, 0, 0); in thread() 40 __atomic_store_n(&turn, 1 - id, __ATOMIC_RELEASE); in thread() 41 syscall(SYS_futex, &turn, FUTEX_WAKE, 0, 0, 0, 0); in thread()
|