Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
[NIB]atomic_exchange Function

atomic_exchange Function

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