event/InotifyEvent: add method IsDefined()

This commit is contained in:
Max Kellermann 2025-03-07 15:12:45 +01:00 committed by Max Kellermann
parent fb59bbc481
commit 103487e8ad

@ -51,6 +51,13 @@ public:
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
* disabled by Disable().