threadman 0.1.0
Header-only C++23 managed threads, dynamic pools, futures, and executors
Loading...
Searching...
No Matches
Namespaces | Functions
json.hpp File Reference

nlohmann/json serialization hooks for the snapshot value-types and their enums. More...

#include <threadman/config.hpp>
#include <threadman/stats.hpp>
#include <nlohmann/json.hpp>
#include <chrono>
Include dependency graph for json.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  threadman
 

Functions

 threadman::NLOHMANN_JSON_SERIALIZE_ENUM (ThreadState, { {ThreadState::Starting, "starting"}, {ThreadState::Running, "running"}, {ThreadState::Idle, "idle"}, {ThreadState::Retiring, "retiring"}, {ThreadState::Completed, "completed"}, {ThreadState::Failed, "failed"}, }) NLOHMANN_JSON_SERIALIZE_ENUM(TaskState
 

Detailed Description

nlohmann/json serialization hooks for the snapshot value-types and their enums.

Gated by THREADMAN_WITH_NLOHMANN_JSON.