atomic_fetch_min Function

Atomically computes the minimum of a value and the value of the memory location and stores the minimum value to the memory location.

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

Pointer to the destination location.

_Value

The value to be compared to the location.

The original value of the location.

Header: amp.h

Namespace: Concurrency

Show: