builtin_16_atomic_thread_fence.c (178B)
1 int test_main(void) { 2 int x = 0; 3 __atomic_store_n(&x, 21, __ATOMIC_RELAXED); 4 __atomic_thread_fence(__ATOMIC_SEQ_CST); 5 return __atomic_load_n(&x, __ATOMIC_RELAXED) * 2; 6 }
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |