atomic_exchange 함수

대상 위치의 값을 원자 단위 연산으로 설정합니다.

inline int atomic_exchange(
   _Inout_ int * _Dest,
   int _Value                     
) restrict(amp);
                     
inline unsigned int atomic_exchange(
   _Inout_ unsigned int * _Dest,
   unsigned int _Value                     
) restrict(amp);
                     
inline float atomic_exchange(
   _Inout_ float * _Dest,
   float _Value                     
) restrict(amp);

매개 변수

  • _Dest
    Destionation 위치에 대 한 포인터입니다.

  • _Value
    새 값입니다.

반환 값

원래 값의 대상 위치입니다.

요구 사항

헤더: amp.h

네임스페이스: 동시성

참고 항목

참조

Concurrency 네임스페이스(C++ AMP)