adapnex::core::OutputValueMapping::operator<<
Maps an atomic variable that holds the 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 updates being applied to an invalid memory location. |
Parameters
| Name | Description |
|---|---|
target_ref |
The right operand |
Created with MrDocs