Skip to main content

Module copy

Module copy 

Source

Structs§

WellDefinedCopyable
Wrapper for transferring trivially copyable data into and out of shared memory using well-defined atomic operations.

Constants§

MAX_TRANSFER_GRANULARITY

Functions§

well_defined_copy_from⚠
Copy size_bytes bytes from src to dst using atomic load operations to load the element from src so that the behavior of the system is always well defined, even if there is a well_defined_copy_to operation writing to the memory pointed to by src concurrent with this well_defined_copy_from operation.
well_defined_copy_to⚠
Copy size_bytes bytes from src to dst using atomic store operations to move the element into dst so that the behavior of the system is always well defined, even if there is a well_defined_copy_from operation reading from the memory pointed to by dst concurrent with this well_defined_copy_to operation.