1 2 3 4 5 6
#include <stdatomic.h> void atomic_flag_clear(volatile atomic_flag *object) { *object = 0; }