|
Discman
|
The Poller uses a separate thread to poll the host for a disc drive with an audio CD. More...
#include <cd_drive.h>

Public Member Functions | |
| Poller (CDDrive &drive) | |
| Poller constructor. | |
| ~Poller () | |
| Poller destructor. | |
| void | poll () |
| The execution loop performed by the thread. | |
Private Attributes | |
| CDDrive & | _drive |
| The parent CDDrive. | |
| bool | _exit |
| Stores a request to exit 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 a disc drive with an audio CD.
Definition at line 228 of file cd_drive.h.
| CDDrive::Poller::Poller | ( | CDDrive & | drive | ) |
Poller constructor.
| [in] | drive | The parent CDDrive. |
Definition at line 98 of file cd_drive.cc.
| CDDrive::Poller::~Poller | ( | ) |
Poller destructor.
Definition at line 104 of file cd_drive.cc.
| void CDDrive::Poller::poll | ( | ) |
The execution loop performed by the thread.
Definition at line 111 of file cd_drive.cc.
|
private |
The parent CDDrive.
Definition at line 240 of file cd_drive.h.
|
private |
Stores a request to exit poll().
Definition at line 242 of file cd_drive.h.
|
private |
Provides mutually exclusive access to the _exit member between the the application thread and the Poller thread.
Definition at line 246 of file cd_drive.h.
|
private |
The thread used to run poll().
Definition at line 249 of file cd_drive.h.