adapnex::core::InputArrayMapping::ValueMapping::operator>>

Maps an atomic variable that will hold the element's value produced by the input driver. Using an atomic variable enables safe accesses across task groups. However, consumers in other task groups must consider, that the value may change 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 updates being applied to an invalid memory location.

Parameters

Name Description

target_ref

The right operand

Created with MrDocs