dispenso 1.6.0
A library for task parallelism
Loading...
Searching...
No Matches
dispenso::CacheAligned< T > Class Template Reference

#include <platform.h>

Public Member Functions

 CacheAligned (T t)
 

Detailed Description

template<typename T>
class dispenso::CacheAligned< T >

A wrapper that aligns the contained value to cache line boundaries.

Useful for avoiding false sharing in concurrent data structures.

Template Parameters
TThe type to wrap with cache line alignment.

Definition at line 199 of file platform.h.

Constructor & Destructor Documentation

◆ CacheAligned()

template<typename T >
dispenso::CacheAligned< T >::CacheAligned ( T t)
inline

Construct from a value.

Parameters
tThe value to wrap.

Definition at line 203 of file platform.h.


The documentation for this class was generated from the following file: