다음을 통해 공유


atomic_fetch_min 함수

원자적으로 최소 값과 메모리 위치의 값을 계산 하 고 최소값은 메모리 위치에 저장.

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

매개 변수

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

  • _Value
    위치를 비교할 값입니다.

반환 값

원래 값의 위치입니다.

요구 사항

헤더: amp.h

네임스페이스: 동시성

참고 항목

참조

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