Handle for distributed memory collective operations. More...
Public Member Functions | |
collective (id i, topology const &t) | |
void | try_destroy (void) noexcept |
id const & | get_id (void) const noexcept |
topology const & | get_topology (void) const noexcept |
void | notify_arrival (message_shared_ptr &sm) |
Notifies that sm has arrived from a child process. | |
template<typename Function > | |
message_slist | try_collect (Function &&f) |
Returns the messages from children if they have all arrived or sets f as a notifier to be called when they have arrived. | |
Static Public Member Functions | |
static collective & | get (id const &, topology const &) |
Returns a reference to the requested collective. | |
static collective & | get (id const &) |
Returns a reference to the requested collective. | |
Public Types | |
using | id = std::pair< gang_id, collective_id > |
Handle for distributed memory collective operations.