Namespaces
Variants
Views
Actions

atomic_thread_fence

From cppreference.com
< c‎ | atomic
Revision as of 03:43, 30 August 2013 by 203.97.127.101 (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Defined in header <stdatomic.h>
void atomic_thread_fence( memory_order order );
(since C11)

Establishes memory synchronization ordering of non-atomic and relaxed atomic accesses, as instructed by order, without an associated atomic operation. For example, all non-atomic and relaxed atomic stores that happen before a memory_order_release fence in thread A will be synchronized with non-atomic and relaxed atomic loads from the same locations made in thread B after an memory_order_acquire fence.

[edit] Parameters

order - the memory ordering executed by this fence

[edit] Return value

(none)

[edit] See also

fence between a thread and a signal handler executed in the same thread
(function) [edit]
C++ documentation for atomic_thread_fence