Fray Engine
Loading...
Searching...
No Matches
fray::threads::ThreadManager::Entry Struct Reference

Public Attributes

std::string name
std::thread thread
StopToken token
std::shared_ptr< std::atomic< bool > > finished

Detailed Description

Registry record for one thread.

Definition at line 174 of file thread_manager.hpp.

Member Data Documentation

◆ finished

std::shared_ptr<std::atomic<bool> > fray::threads::ThreadManager::Entry::finished

Set to true when the thread body has returned.

Definition at line 183 of file thread_manager.hpp.

◆ name

std::string fray::threads::ThreadManager::Entry::name

Name shown in logs.

Definition at line 177 of file thread_manager.hpp.

◆ thread

std::thread fray::threads::ThreadManager::Entry::thread

The owned thread, joined by join().

Definition at line 179 of file thread_manager.hpp.

◆ token

StopToken fray::threads::ThreadManager::Entry::token

Token passed to the thread body to signal stop.

Definition at line 181 of file thread_manager.hpp.


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