A class that manages thread states and provides utilities for thread handling. More...
#include <thread_manager.hpp>
Classes | |
| struct | ThreadState | 
| Represents the state of a thread managed by ThreadManager.  More... | |
Public Member Functions | |
| ThreadManager () | |
| Construct a ThreadManager with a worker thread pool.   | |
| auto | getThreadState () -> ThreadState & | 
| Destructor to clean up resources and threads.   | |
| auto | getWorkerThreadPool () -> WorkerThreadPool & | 
| Get the worker thread pool.   | |
| void | lockPlayMutex (ThreadState &thread_state) | 
| Locks the play mutex for the provided thread state.   | |
| void | lockQueueMutex (ThreadState &thread_state) | 
| Locks the queue mutex for the provided thread state.   | |
A class that manages thread states and provides utilities for thread handling.
      
  | 
  inline | 
Construct a ThreadManager with a worker thread pool.
      
  | 
  inline | 
Destructor to clean up resources and threads.
Retrieves the thread state managed by this ThreadManager.
      
  | 
  inline | 
Get the worker thread pool.
      
  | 
  inline | 
Locks the play mutex for the provided thread state.
| thread_state | Reference to the ThreadState object whose mutex is to be locked. | 
      
  | 
  inline | 
Locks the queue mutex for the provided thread state.
| thread_state | Reference to the ThreadState object whose mutex is to be locked. |