Export (0) Print
Expand All

atomic_fetch_add Function

Atomically add a value to the value of a memory location.

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

_Dest

Pointer to the memory location.

_Value

The value to be added.

The original value of the memory location.

Header: amp.h

Namespace: Concurrency

Show:
© 2014 Microsoft