event/InotifyEvent: add method IsDefined()
This commit is contained in:

committed by
Max Kellermann

parent
fb59bbc481
commit
103487e8ad
@ -51,6 +51,13 @@ public:
|
|||||||
return event.GetEventLoop();
|
return event.GetEventLoop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the inotify file descriptor still open?
|
||||||
|
*/
|
||||||
|
bool IsDefined() const noexcept {
|
||||||
|
return event.IsDefined();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Re-enable polling the inotify file descriptor after it was
|
* Re-enable polling the inotify file descriptor after it was
|
||||||
* disabled by Disable().
|
* disabled by Disable().
|
||||||
|
Reference in New Issue
Block a user