Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::ParallelOptions Struct Reference

Common configuration object for parallel algorithms. More...

#include <thread_pool.H>

Collaboration diagram for Aleph::ParallelOptions:
[legend]

Public Attributes

size_t min_size = 0
 Run sequentially below this size.
 
size_t chunk_size = 0
 Elements per chunk (0 = auto).
 
size_t max_tasks = 0
 Maximum number of scheduled tasks (0 = auto).
 
ThreadPoolpool = nullptr
 Executor to use (nullptr = default_pool()).
 
CancellationToken cancel_token {}
 Cooperative cancellation observer.
 

Detailed Description

Common configuration object for parallel algorithms.

Existing overloads that take ThreadPool& and chunk_size remain valid. This object provides a more coherent way to pass tuning and control knobs without widening every signature further.

Definition at line 352 of file thread_pool.H.

Member Data Documentation

◆ cancel_token

CancellationToken Aleph::ParallelOptions::cancel_token {}

Cooperative cancellation observer.

Definition at line 358 of file thread_pool.H.

◆ chunk_size

size_t Aleph::ParallelOptions::chunk_size = 0

Elements per chunk (0 = auto).

Definition at line 355 of file thread_pool.H.

Referenced by TEST_F().

◆ max_tasks

size_t Aleph::ParallelOptions::max_tasks = 0

Maximum number of scheduled tasks (0 = auto).

Definition at line 356 of file thread_pool.H.

◆ min_size

size_t Aleph::ParallelOptions::min_size = 0

Run sequentially below this size.

Definition at line 354 of file thread_pool.H.

◆ pool


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