blob: 71f698c9de75004059c0ef857ec5db0117b2cb1f [file] [log] [blame]
Pirama Arumuga Nainarcdce50b2015-07-01 12:26:56 -07001/*===-- atomic_thread_fence.c -----------------------------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
7 *
8 *===------------------------------------------------------------------------===
9 *
10 * This file implements atomic_thread_fence from C11's stdatomic.h.
11 *
12 *===------------------------------------------------------------------------===
13 */
14
15#include <stdatomic.h>
16#undef atomic_thread_fence
17void atomic_thread_fence(memory_order order) {
18 __c11_atomic_thread_fence(order);
19}