ThreadSchedule 2.2.0
Modern C++ thread management library
Loading...
Searching...
No Matches
task_group.hpp File Reference

Structured concurrency via task_group. More...

#include <exception>
#include <future>
#include <mutex>
#include <vector>
Include dependency graph for task_group.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  threadschedule::task_group< Pool >
 Scoped task group that ensures all submitted work completes before the group is destroyed. More...

Namespaces

namespace  threadschedule

Detailed Description

Structured concurrency via task_group.

A task_group ties a set of tasks to a scope: all submitted tasks are guaranteed to complete before wait() returns (or the destructor runs). This eliminates dangling-future bugs and makes exception propagation deterministic.

Definition in file task_group.hpp.