event/InotifyEvent: add method IsDefined()
This commit is contained in:
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().
|
||||
|
Loading…
x
Reference in New Issue
Block a user