Context for nodes (coroutines) in rapidsmpf.
More...
#include <context.hpp>
Context for nodes (coroutines) in rapidsmpf.
Definition at line 25 of file context.hpp.
◆ Context() [1/2]
Full constructor for the Context.
All provided pointers must be non-null.
- Parameters
-
| options | Configuration options. |
| comm | Shared pointer to a communicator. |
| progress_thread | Shared pointer to a progress thread. |
| executor | Unique pointer to a coroutine thread pool. |
| br | Shared pointer to a buffer resource. |
| statistics | Shared pointer to a statistics collector. |
◆ Context() [2/2]
Convenience constructor with minimal configuration.
Creates a default ProgressThread and coroutine thread pool.
- Parameters
-
| options | Configuration options. |
| comm | Shared pointer to a communicator. |
| br | Buffer resource used to reserve host memory and perform the move. |
| statistics | The statistics instance to use (disabled by default). |
◆ br()
Returns the buffer resource.
- Returns
- Raw pointer to the buffer resource.
◆ comm()
| std::shared_ptr<Communicator> rapidsmpf::streaming::Context::comm |
( |
| ) |
const |
|
noexcept |
Returns the communicator.
- Returns
- Shared pointer to the communicator.
◆ create_bounded_queue()
| std::shared_ptr<BoundedQueue> rapidsmpf::streaming::Context::create_bounded_queue |
( |
std::size_t |
buffer_size | ) |
const |
|
noexcept |
Create a new bounded queue associated with this context.
- Parameters
-
| buffer_size | Maximum size of the queue. |
- Returns
- A shared pointer to the newly created bounded queue.
◆ create_channel()
| std::shared_ptr<Channel> rapidsmpf::streaming::Context::create_channel |
( |
| ) |
const |
|
noexcept |
Create a new channel associated with this context.
- Returns
- A shared pointer to the newly created channel.
◆ executor()
| std::unique_ptr<coro::thread_pool>& rapidsmpf::streaming::Context::executor |
( |
| ) |
|
|
noexcept |
Returns the coroutine thread pool.
- Returns
- Reference to unique pointer to the thread pool.
◆ get_options()
Returns the configuration options.
- Returns
- The Options instance.
◆ progress_thread()
| std::shared_ptr<ProgressThread> rapidsmpf::streaming::Context::progress_thread |
( |
| ) |
const |
|
noexcept |
Returns the progress thread.
- Returns
- Shared pointer to the progress thread.
◆ spillable_messages()
| std::shared_ptr<SpillableMessages> rapidsmpf::streaming::Context::spillable_messages |
( |
| ) |
const |
|
inline |
Returns the spillable messages collection.
- Returns
- A shared pointer to the collection.
Definition at line 121 of file context.hpp.
◆ statistics()
| std::shared_ptr<Statistics> rapidsmpf::streaming::Context::statistics |
( |
| ) |
const |
|
noexcept |
Returns the statistics collector.
- Returns
- Shared pointer to the statistics instance.
The documentation for this class was generated from the following file:
- /__w/rapidsmpf/rapidsmpf/cpp/include/rapidsmpf/streaming/core/context.hpp