Export (0) Print
Expand All

atomic_exchange Function (C++ AMP)

Sets the value of destination location as an atomic operation.

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);


Pointer to the destionation location.


The new value.

The original value of the destination location.

Header: amp.h

Namespace: Concurrency

© 2015 Microsoft