adapnex::core::OutputArrayMapping::ValueMapping::operator<<

Maps an atomic variable that holds the element's value to be consumed by the output driver. Using an atomic variable enables safe accesses across task groups. However, producers in other task groups must consider, that the value may be consumed during their cycle, as updates are not synchronized.

Synopsis

Declared in <adapnex/core/mapping.h>

void
operator<<(std::atomic<T>& target_ref);

Description

Care must be taken to ensure the lifecycle of the variable is at least as long as the mapping to avoid reads from an invalid memory location.

Parameters

Name Description

target_ref

The right operand

Created with MrDocs