Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.