atomic_fetch_sub Function (C++ AMP)

Atomically subtracts a value from a memory location.

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


Pointer to the destionation location.


The value to be subtracted.

The original value of the memory location.

Header: amp.h

Namespace: Concurrency

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft