inLimbo
TUI Music Player that keeps you in Limbo.
 
Loading...
Searching...
No Matches
ThreadManager::ThreadState Struct Reference

Represents the state of a thread managed by ThreadManager. More...

#include <thread_manager.hpp>

Public Attributes

std::mutex play_mutex
 Mutex for synchronizing play state.
 
std::mutex queue_mutex
 Mutex for synchronizing queue operations.
 
std::mutex audioDevicesMutex
 Mutex for synchronizing audio device access.
 
std::atomic< bool > is_processing {false}
 Indicates whether the thread is processing.
 
std::atomic< bool > is_playing {false}
 Indicates whether the thread is playing.
 
std::future< void > play_future
 Future object for async play operations.
 
std::unique_ptr< std::thread > mpris_dbus_thread
 Unique pointer for DBus thread.
 
std::thread playNextSongThread
 Thread for handling "play next song" operations.
 

Detailed Description

Represents the state of a thread managed by ThreadManager.

Member Data Documentation

◆ audioDevicesMutex

std::mutex ThreadManager::ThreadState::audioDevicesMutex

Mutex for synchronizing audio device access.

◆ is_playing

std::atomic<bool> ThreadManager::ThreadState::is_playing {false}

Indicates whether the thread is playing.

◆ is_processing

std::atomic<bool> ThreadManager::ThreadState::is_processing {false}

Indicates whether the thread is processing.

◆ mpris_dbus_thread

std::unique_ptr<std::thread> ThreadManager::ThreadState::mpris_dbus_thread

Unique pointer for DBus thread.

◆ play_future

std::future<void> ThreadManager::ThreadState::play_future

Future object for async play operations.

◆ play_mutex

std::mutex ThreadManager::ThreadState::play_mutex

Mutex for synchronizing play state.

◆ playNextSongThread

std::thread ThreadManager::ThreadState::playNextSongThread

Thread for handling "play next song" operations.

◆ queue_mutex

std::mutex ThreadManager::ThreadState::queue_mutex

Mutex for synchronizing queue operations.


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