MPD
0.20.18
|
A class that wraps eventfd(). More...
#include <EventFD.hxx>
Public Member Functions | |
EventFD () | |
~EventFD () | |
EventFD (const EventFD &other)=delete | |
EventFD & | operator= (const EventFD &other)=delete |
int | Get () const |
bool | Read () |
Checks if Write() was called at least once since the last Read() call. More... | |
void | Write () |
Wakes up the reader. More... | |
A class that wraps eventfd().
Errors in the constructor are fatal.
Definition at line 31 of file EventFD.hxx.
EventFD::EventFD | ( | ) |
|
inline |
Definition at line 36 of file EventFD.hxx.
|
delete |
|
inline |
Definition at line 43 of file EventFD.hxx.
void EventFD::Write | ( | ) |
Wakes up the reader.
Multiple calls to this function will be combined to one wakeup.