tf::CachelineAligned
taskflow/utility/os.hpp
typename T
T T tf::CachelineAligned< T >::data data tf::CachelineAligned::data

The stored object, aligned to twice the cacheline size.

T & T & tf::CachelineAligned< T >::get () get tf::CachelineAligned::get

Provides access to the stored object.

A reference to the stored object.

struct to ensure cacheline-aligned storage for an object.

This utility struct aligns the stored object `data` to twice the size of a cacheline. The alignment improves performance by optimizing data access in cache-sensitive scenarios.

T

The type of the stored object.

- tf::CachelineAligned
  data
- tf::CachelineAligned
  get