MPD
0.20.18
|
An event that runs when the EventLoop has become idle, before waiting for more events. More...
#include <IdleMonitor.hxx>
Public Member Functions | |
IdleMonitor (EventLoop &_loop) | |
~IdleMonitor () | |
EventLoop & | GetEventLoop () const |
bool | IsActive () const |
void | Schedule () |
void | Cancel () |
Protected Member Functions | |
virtual void | OnIdle ()=0 |
Friends | |
class | EventLoop |
An event that runs when the EventLoop has become idle, before waiting for more events.
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 35 of file IdleMonitor.hxx.
|
inline |
Definition at line 43 of file IdleMonitor.hxx.
|
inline |
Definition at line 46 of file IdleMonitor.hxx.
void IdleMonitor::Cancel | ( | ) |
|
inline |
Definition at line 55 of file IdleMonitor.hxx.
|
inline |
Definition at line 59 of file IdleMonitor.hxx.
|
protectedpure virtual |
Implemented in FullyBufferedSocket.
void IdleMonitor::Schedule | ( | ) |
|
friend |
Definition at line 36 of file IdleMonitor.hxx.