0 out of 1 rated this helpful - Rate this topic

atomic_load Function

Visual Studio 2012

Retrieves the stored value in an atomic object.

template <class Ty>
inline Ty atomic_load(
   const volatile atomic<Ty> *Atom
) _NOEXCEPT;
template <class Ty>
inline Ty atomic_load(
   const atomic<Ty> *Atom
) _NOEXCEPT;
Atom

A pointer to an atomic object that contains a value of type Ty.

The retrieved value that is stored in Atom.

atomic_load implicitly uses the memory_order_seq_cst memory_order.

Header: atomic

Namespace: std

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.