Do not use turn as a quantifier, move back to the previous behaviour. But wake other possible threads before putting the current one (or the other, or none) to sleep
Do not use turn as a quantifier, move back to the previous behaviour. But wake other possible threads before putting the current one (or the other, or none) to sleep

rakuco/peterson_futex