atomic_exchange
if (atomic_exchange(&c->rc_crc_reset, false))
sendall = atomic_exchange(&c->rc_send_fullscreen, false);
input = atomic_exchange(&c->rc_input_detected, false);
if (atomic_exchange(&c->rc_pending, false) == false)