Public Member Functions | List of all members
rapidsmpf::shuffler::detail::ChunksToSend Class Reference

A thread-safe container for managing outgoing (to send) chunks. More...

#include <postbox.hpp>

Public Member Functions

void insert (std::unique_ptr< Chunk > c)
 Insert a chunk into the container. More...
 
std::vector< Chunkextract_ready ()
 Extract ready chunks. More...
 
bool empty () const
 
std::string str () const
 

Detailed Description

A thread-safe container for managing outgoing (to send) chunks.

Definition at line 20 of file postbox.hpp.

Member Function Documentation

◆ empty()

bool rapidsmpf::shuffler::detail::ChunksToSend::empty ( ) const
Returns
Whether the container is empty.

◆ extract_ready()

std::vector<Chunk> rapidsmpf::shuffler::detail::ChunksToSend::extract_ready ( )

Extract ready chunks.

Note
Ready means no stream-ordered work queued on the chunk's data.
Returns
Vector of chunks ready to send.

◆ insert()

void rapidsmpf::shuffler::detail::ChunksToSend::insert ( std::unique_ptr< Chunk c)

Insert a chunk into the container.

Parameters
cThe chunk to insert.

◆ str()

std::string rapidsmpf::shuffler::detail::ChunksToSend::str ( ) const
Returns
Returns a description of this instance.

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