ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
Channels.h

The channels between the long-lived workers of an executor, beyond the book. More...

Files

file  ADS/parallel/Channels.h
 The channels between the long-lived workers of an executor [see Executor.h], beyond the book: \( p \) workers, each with an inbox, where any worker pushes a batch of messages for another one and the owner of the inbox drains it.

Concepts

concept  ADS::ChannelFamily
 the families of channels among \( p \) workers: tryPush( from , to , m ) pushes a span of messages and returns how many, drain( me , f ) calls \( f \) on the messages of the inbox of me and returns how many, size() is \( p \)

Classes

class  ADS::ChannelPort< C >
 the channels of a family seen by one worker More...
class  ADS::LockedChannels< Msg, Lock >
 the inboxes as vectors under a lock, the portable baseline More...
class  ADS::InboxChannels< Msg >
 the inboxes as stacks of Treiber of batches [see MPSCInbox.h] More...
class  ADS::LaneChannels< Msg, B >
 the inboxes as queues with a lane per sender [see MPSCQueue.h] More...
class  ADS::MeshChannels< Msg >
 the \( p^2 \) bounded queues of the pairs of workers [see SPSCQueue.h] More...
struct  ADS::ChannelsOf< E >
 the family of channels of an executor, as measured by bench/runtime.cpp (see Channels between workers): the mesh on every executor, which won the batches of 1 and of 64 messages and the round trips on the pool, OpenMP and FastFlow, with the trees a tie; a specialization may give an executor a family of its own More...

Typedefs

template<class Msg, class E>
using ADS::DefaultChannels = typename ChannelsOf< E >::template type< Msg >
 the family of channels to use on the executor E

Detailed description

The channels between the long-lived workers of an executor, beyond the book.

The definitions, the invariants and the costs of the area are in Theory of parallelism.

Typedef documentation

◆ DefaultChannels

template<class Msg, class E>
using ADS::DefaultChannels = typename ChannelsOf< E >::template type< Msg >

the family of channels to use on the executor E