1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:27:35 +00:00

LibCore: Added FileWatcher, a binding for the watch_file syscall

This wrapper abstracts the watch_file setup and file handling, and
allows using the watch_file events as part of the event loop via the
Core::Notifier class.

Also renames the existing DirectoryWatcher class to BlockingFileWatcher,
and adds support for the Modified mode in this class.
This commit is contained in:
DexesTTP 2021-02-08 20:40:58 +01:00 committed by Andreas Kling
parent 0304ab3e67
commit 2acbb811b1
7 changed files with 216 additions and 119 deletions

View file

@ -165,6 +165,7 @@ set(CPP_DEBUG ON)
set(DEBUG_SPAM ON)
set(DEBUG_CPP_LANGUAGE_SERVER ON)
set(DEBUG_AUTOCOMPLETE ON)
set(FILE_WATCHER_DEBUG ON)
# False positive: DEBUG is a flag but it works differently.
# set(DEBUG ON)