atomic_flag flag; assert(!atomic_flag_test_and_set_impl(&flag)); atomic_flag_clear_impl(&flag);
See Implementation