Fray Engine
Loading...
Searching...
No Matches
fray::threads Namespace Reference

Classes

class  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...
class  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  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...