Share via


atomic_fetch_inc Function

Peforms an atomic increment to the specified memory location.

inline int atomic_fetch_inc(
   _Inout_ int * _Dest                     
) restrict(amp);
                     
inline unsigned int atomic_fetch_inc(
   _Inout_ unsigned int * _Dest                     
) restrict(amp);

Parameters

  • _Dest
    Pointer to the destionation location.

Return Value

The original value of the specified location.

Requirements

Header: amp.h

Namespace: Concurrency

See Also

Reference

Concurrency Namespace (C++ AMP)