MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- Data Structures
- Class Hierarchy
- Data Fields

Public Member Functions | Protected Member Functions | Friends
TimeoutMonitor Class Referenceabstract

This class monitors a timeout. More...

`#include <TimeoutMonitor.hxx>`

Inheritance diagram for TimeoutMonitor:
[legend]

## Public Member Functions
| TimeoutMonitor (EventLoop &_loop)
| ~TimeoutMonitor ()
EventLoop & | GetEventLoop ()
bool | IsActive () const
void | Schedule (std::chrono::steady_clock::duration d)
void | Cancel ()

## Protected Member Functions
virtual void | OnTimeout ()=0

## Friends
class | EventLoop

## Detailed Description

This class monitors a timeout.

Use Schedule() to begin the timeout or Cancel() to cancel it.

This class is not thread-safe, all methods must be called from the thread that runs the EventLoop, except where explicitly documented as thread-safe.

Definition at line 37 of file TimeoutMonitor.hxx.

## Constructor & Destructor Documentation

TimeoutMonitor::TimeoutMonitor | ( | EventLoop & | _loop | ) |
| inline

Definition at line 45 of file TimeoutMonitor.hxx.

TimeoutMonitor::~TimeoutMonitor | ( |  | ) |
| inline

Definition at line 49 of file TimeoutMonitor.hxx.

## Member Function Documentation

void TimeoutMonitor::Cancel | ( |  | ) |

EventLoop& TimeoutMonitor::GetEventLoop | ( |  | ) |
| inline

Definition at line 53 of file TimeoutMonitor.hxx.

bool TimeoutMonitor::IsActive | ( |  | ) | const
| inline

Definition at line 57 of file TimeoutMonitor.hxx.

virtual void TimeoutMonitor::OnTimeout | ( |  | ) |
| protected pure virtual

void TimeoutMonitor::Schedule | ( | std::chrono::steady_clock::duration | d | ) |

## Friends And Related Function Documentation

friend class EventLoop
| friend

Definition at line 38 of file TimeoutMonitor.hxx.

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

- event/TimeoutMonitor.hxx