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

The compare and swap function object. More...

#include <Op.hpp>

Public Member Functions

template<typename T , std::enable_if_t<!std::is_floating_point_v< T >, bool > = true>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator() (T *addr, T const &compare, T const &value) const -> T
 AtomicCas for non floating point values. More...
 
template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto operator() (T *addr, T const &compare, T const &value) const -> T
 AtomicCas for floating point values. More...
 

Detailed Description

The compare and swap function object.

Definition at line 184 of file Op.hpp.

Member Function Documentation

◆ operator()() [1/2]

template<typename T , std::enable_if_t<!std::is_floating_point_v< T >, bool > = true>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::AtomicCas::operator() ( T *  addr,
T const &  compare,
T const &  value 
) const -> T
inline

AtomicCas for non floating point values.

Definition at line 190 of file Op.hpp.

◆ operator()() [2/2]

template<typename T , std::enable_if_t< std::is_floating_point_v< T >, bool > = true>
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::AtomicCas::operator() ( T *  addr,
T const &  compare,
T const &  value 
) const -> T
inline

AtomicCas for floating point values.

Definition at line 213 of file Op.hpp.


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