extern "C" void atomic_thread_fence (memory_order sync) noexcept;
enum type memory_order:
|The call has no effects.
|Sets up an acquire fence:
Synchronizes all visible side effects from the last release or sequentially consistent operation.
|Sets up a release fence:
Synchronizes side effects with the next acquire operation.
|Sets up a fence that is both an acquire fence and a release fence:
Synchronizes all visible side effects from the last release or sequentially consistent operation and with the next acquire operation.
|Sets up a sequentially consistent acquire and release fence:
Synchronizes all visible side effects with the other sequentially consistent operations, following a single total order.