TIMEOUT_ONQUEUE
if (ISSET(new->to_flags, TIMEOUT_ONQUEUE)) {
SET(new->to_flags, TIMEOUT_ONQUEUE);
if (ISSET(to->to_flags, TIMEOUT_ONQUEUE)) {
SET(to->to_flags, TIMEOUT_ONQUEUE);
if (ISSET(to->to_flags, TIMEOUT_ONQUEUE)) {
CLR(to->to_flags, TIMEOUT_ONQUEUE);
SET(barrier.to_flags, TIMEOUT_ONQUEUE);
CLR(to->to_flags, TIMEOUT_ONQUEUE);
#define timeout_pending(to) ((to)->to_flags & TIMEOUT_ONQUEUE)