Export (0) Print
Expand All

atomic_init Function

Sets the stored value in an atomic object.

template <class Ty>
inline void atomic_init(
   volatile atomic<Ty> *Atom,
   Ty Value
) _NOEXCEPT;
template <class Ty>
inline void atomic_init(
   atomic<Ty> *Atom,
   TyValue
) _NOEXCEPT;

Atom

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

Value

A value of type Ty.

atomic_init is not an atomic operation. It is not thread-safe.

Header: atomic

Namespace: std

Show:
© 2014 Microsoft