|
Fray Engine
|
#include <atomic>#include <chrono>#include <condition_variable>#include <cstdint>#include <deque>#include <exception>#include <functional>#include <map>#include <memory>#include <mutex>#include <string>#include <thread>#include <utility>#include <vector>#include "log_manager.hpp"Go to the source code of this file.
Classes | |
| class | fray::threads::StopToken |
| Cooperative cancellation shared by every copy of a token. Copies share one state guarded by an internal mutex, so any thread may use any copy. More... | |
| struct | fray::threads::StopToken::State |
| class | fray::threads::TaskQueue |
| A task loop that runs on one thread. Other threads post work to it. Tasks run one at a time in posting order. post() and shutdown() are safe from any thread; run() belongs to the one thread that drains it. More... | |
| class | fray::threads::ThreadManager |
| Registry of the engine's threads: starts them, names them, asks them to stop and joins them. Every method is safe from any thread; one internal mutex guards the registry and is never held while joining or running thread bodies. The destructor logs the names of threads still running, requests stop on all, and joins them (blocking). Not copyable. More... | |
| struct | fray::threads::ThreadManager::Entry |
Namespaces | |
| namespace | fray |
| namespace | fray::threads |