Thrill  0.1
FlowControlChannel::LocalData Class Reference

Detailed Description

Thread local data structure: aligned such that no cache line is shared. The actual vector is in the FlowControlChannelManager.

Definition at line 98 of file flow_control_channel.hpp.

Public Member Functions

Generation Counting
void WaitCounter (size_t this_step)
 
void IncCounter ()
 

Public Attributes

std::atomic< size_t > counter { 0 }
 atomic generation counter, compare this to generation_. More...
 
std::atomic< void * > ptr [2] = { { nullptr }, { nullptr } }
 pointer to some thread-owned data type More...
 

Member Function Documentation

◆ IncCounter()

void IncCounter ( )
inline

◆ WaitCounter()

void WaitCounter ( size_t  this_step)
inline

Member Data Documentation

◆ counter

std::atomic<size_t> counter { 0 }

atomic generation counter, compare this to generation_.

Definition at line 106 of file flow_control_channel.hpp.

Referenced by FlowControlChannel::LocalData::IncCounter(), and FlowControlChannel::LocalData::WaitCounter().

◆ ptr

std::atomic<void*> ptr[2] = { { nullptr }, { nullptr } }

pointer to some thread-owned data type

Definition at line 103 of file flow_control_channel.hpp.

Referenced by FlowControlChannel::GetLocalShared(), and FlowControlChannel::SetLocalShared().


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