threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
Loading...
Searching...
No Matches
Public Attributes | List of all members
threadman::TaskSnapshot Struct Reference

A snapshot of a single task's lifecycle. More...

#include <stats.hpp>

Public Attributes

std::uint64_t id = 0
 
std::optional< std::string > name
 
std::uint64_t pool_id = 0
 
TaskState state = TaskState::Queued
 
std::chrono::steady_clock::time_point created_at
 
std::optional< std::chrono::steady_clock::time_point > started_at
 
std::optional< std::chrono::steady_clock::time_point > finished_at
 
bool failed = false
 

Detailed Description

A snapshot of a single task's lifecycle.

Member Data Documentation

◆ created_at

std::chrono::steady_clock::time_point threadman::TaskSnapshot::created_at

◆ failed

bool threadman::TaskSnapshot::failed = false

◆ finished_at

std::optional<std::chrono::steady_clock::time_point> threadman::TaskSnapshot::finished_at

◆ id

std::uint64_t threadman::TaskSnapshot::id = 0

◆ name

std::optional<std::string> threadman::TaskSnapshot::name

◆ pool_id

std::uint64_t threadman::TaskSnapshot::pool_id = 0

◆ started_at

std::optional<std::chrono::steady_clock::time_point> threadman::TaskSnapshot::started_at

◆ state

TaskState threadman::TaskSnapshot::state = TaskState::Queued

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