Discman
Loading...
Searching...
No Matches
DriveManager::Poller Class Reference

The Poller uses a separate thread to poll the host for the presence of an audio CD. More...

#include <drive_manager.h>

Collaboration diagram for DriveManager::Poller:

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().
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Poller()

DriveManager::Poller::Poller ( DriveManager & manager)

Poller constructor.

Parameters
[in]managerThe parent DriveManager.

Definition at line 24 of file drive_manager.cc.

◆ ~Poller()

DriveManager::Poller::~Poller ( )

Poller destructor.

Definition at line 30 of file drive_manager.cc.

Member Function Documentation

◆ poll()

void DriveManager::Poller::poll ( )

The execution loop performed by the thread.

Definition at line 37 of file drive_manager.cc.

Member Data Documentation

◆ _exit

bool DriveManager::Poller::_exit
private

Stores a request to exist poll().

Definition at line 110 of file drive_manager.h.

◆ _exit_lock

std::mutex DriveManager::Poller::_exit_lock
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.

◆ _manager

DriveManager& DriveManager::Poller::_manager
private

The parent DriveManager.

Definition at line 109 of file drive_manager.h.

◆ _thread

std::thread DriveManager::Poller::_thread
private

The thread used to run poll().

Definition at line 117 of file drive_manager.h.


The documentation for this class was generated from the following files: