libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::LockFreePool< Data >::Slot Union Reference

单个槽结构体 / Individual slot structure (cache line aligned) More...

#include <lockfree_pool.hpp>

Data Fields

struct { 
 
   std::atomic< SlotState >   state 
 当前槽状态 / Current state More...
 
   Data   data 
 槽内数据 / Stored data More...
 
slot 
 
uint8_t pad [LIBXR_CACHE_LINE_SIZE]
 缓存行填充 / Cache line padding
 

Detailed Description

template<typename Data>
union LibXR::LockFreePool< Data >::Slot

单个槽结构体 / Individual slot structure (cache line aligned)

Definition at line 41 of file lockfree_pool.hpp.

Field Documentation

◆ data

template<typename Data >
Data LibXR::LockFreePool< Data >::Slot::data

槽内数据 / Stored data

Definition at line 46 of file lockfree_pool.hpp.

◆ pad

template<typename Data >
uint8_t LibXR::LockFreePool< Data >::Slot::pad[LIBXR_CACHE_LINE_SIZE]

缓存行填充 / Cache line padding

Definition at line 49 of file lockfree_pool.hpp.

◆ state

template<typename Data >
std::atomic<SlotState> LibXR::LockFreePool< Data >::Slot::state

当前槽状态 / Current state

Definition at line 45 of file lockfree_pool.hpp.


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