atomic_fetch_max 함수

원자적으로 최대 값 및 값을 메모리 위치를 계산 하 고 최대값은 메모리 위치에 저장 합니다.

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

매개 변수

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

  • _Value
    비교할 값입니다.

반환 값

원래 메모리 위치의 값입니다.

요구 사항

헤더: amp.h

네임스페이스: 동시성

참고 항목

참조

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