|
Discman
|
The Poller uses a separate thread to poll the host for the presence of an audio CD. More...
#include <drive_manager.h>

Public Member Functions | |
| Poller (DriveManager &manager) | |
| Poller constructor. | |
| ~Poller () | |
| Poller destructor. | |
| void | poll () |
| The execution loop performed by the thread. | |
Private Attributes | |
| DriveManager & | _manager |
| The parent DriveManager. | |
| bool | _exit |
| Stores a request to exist poll(). | |
| std::mutex | _exit_lock |
| Provides mutually exclusive access to the _exit member between the the application thread and the Poller thread. | |
| std::thread | _thread |
| The thread used to run poll(). | |
The Poller uses a separate thread to poll the host for the presence of an audio CD.
Definition at line 97 of file drive_manager.h.
| DriveManager::Poller::Poller | ( | DriveManager & | manager | ) |
Poller constructor.
| [in] | manager | The parent DriveManager. |
Definition at line 24 of file drive_manager.cc.
| DriveManager::Poller::~Poller | ( | ) |
Poller destructor.
Definition at line 30 of file drive_manager.cc.
| void DriveManager::Poller::poll | ( | ) |
The execution loop performed by the thread.
Definition at line 37 of file drive_manager.cc.
|
private |
Stores a request to exist poll().
Definition at line 110 of file drive_manager.h.
|
private |
Provides mutually exclusive access to the _exit member between the the application thread and the Poller thread.
Definition at line 114 of file drive_manager.h.
|
private |
The parent DriveManager.
Definition at line 109 of file drive_manager.h.
|
private |
The thread used to run poll().
Definition at line 117 of file drive_manager.h.