dispenso 1.4.1
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 148 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 152 of file platform.h.


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