|
ADS
Algorithms and Data Structures
|
the channels of a family seen by one worker More...
#include <ADS/parallel/Channels.h>
Public member functions | |
| ChannelPort (C &c, std::size_t i) | |
| the port of the worker \( i \) on the channels \( c \) | |
| std::size_t | tryPush (std::size_t to, std::span< const typename C::Message > m) |
| the messages of \( m \) pushed to the inbox of to, as many as fit | |
| template<class F> | |
| std::size_t | drain (F &&f) |
| the calls f( x ) on the messages of the inbox of the worker | |
| std::size_t | index (void) const |
| the worker of the port | |
the channels of a family seen by one worker
|
inline |
the port of the worker \( i \) on the channels \( c \)
the calls f( x ) on the messages of the inbox of the worker
|
inlinenodiscard |
the worker of the port
|
inline |
the messages of \( m \) pushed to the inbox of to, as many as fit