alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::AtomicExch Struct Reference

The exchange function object. More...

#include <Op.hpp>

Public Member Functions

template<typename T >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator() (T *const addr, T const &value) const -> T
 

Detailed Description

The exchange function object.

Definition at line 90 of file Op.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::AtomicExch::operator() ( T *const  addr,
T const &  value 
) const -> T
inline
Returns
The old value of addr.

Definition at line 95 of file Op.hpp.


The documentation for this struct was generated from the following file: