다음을 통해 공유


atomic_init 함수

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
    Ty 형식의 값을 저장하는 atomic 개체에 대한 포인터입니다.

  • Value
    Ty 형식의 값입니다.

설명

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

요구 사항

헤더: atomic

네임스페이스: std

참고 항목

참조

<atomic>

atomic 구조체