MPD
0.20.6
|
Manage a bit mask of events that have occurred. More...
#include <MaskMonitor.hxx>
Public Member Functions | |
MaskMonitor (EventLoop &_loop, Callback _callback) | |
void | OrMask (unsigned new_mask) |
Protected Member Functions | |
void | RunDeferred () override |
Manage a bit mask of events that have occurred.
Every time the mask becomes non-zero, OnMask() is called in EventLoop's thread.
This class is thread-safe.
Definition at line 35 of file MaskMonitor.hxx.
Definition at line 42 of file MaskMonitor.hxx.
void MaskMonitor::OrMask | ( | unsigned | new_mask | ) |
|
overrideprotectedvirtual |
Implements DeferredMonitor.