|
threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
|
Heap-resident bookkeeping for a single task. More...
#include <task.hpp>

Public Attributes | |
| std::uint64_t | id = 0 |
| std::optional< std::string > | name |
| std::uint64_t | pool_id = 0 |
| std::atomic< TaskState > | state {TaskState::Queued} |
| std::chrono::steady_clock::time_point | created_at {std::chrono::steady_clock::now()} |
| std::optional< std::chrono::steady_clock::time_point > | started_at |
| std::optional< std::chrono::steady_clock::time_point > | finished_at |
| std::exception_ptr | exception |
| std::mutex | mtx |
Heap-resident bookkeeping for a single task.
Shared by the pool, the associated future, and any extra handles users keep.
| std::chrono::steady_clock::time_point threadman::TaskHandle::State::created_at {std::chrono::steady_clock::now()} |
| std::exception_ptr threadman::TaskHandle::State::exception |
| std::optional<std::chrono::steady_clock::time_point> threadman::TaskHandle::State::finished_at |
| std::uint64_t threadman::TaskHandle::State::id = 0 |
|
mutable |
| std::optional<std::string> threadman::TaskHandle::State::name |
| std::uint64_t threadman::TaskHandle::State::pool_id = 0 |
| std::optional<std::chrono::steady_clock::time_point> threadman::TaskHandle::State::started_at |
| std::atomic<TaskState> threadman::TaskHandle::State::state {TaskState::Queued} |