1 /*===-- atomic_flag_clear.c -------------------------------------------------===
3 * The LLVM Compiler Infrastructure
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
8 *===------------------------------------------------------------------------===
10 * This file implements atomic_flag_clear from C11's stdatomic.h.
12 *===------------------------------------------------------------------------===
15 #include <stdatomic.h>
16 #undef atomic_flag_clear
17 void atomic_flag_clear(volatile atomic_flag *object) {
18 return __c11_atomic_store(&(object)->_Value, 0, __ATOMIC_SEQ_CST);