-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DirectoryWatcher: add an implementation for Windows
This implements the directory watcher on Windows. It does the most naive thing for simplicity. ReadDirectoryChangesW is used to monitor the changes. However, in order to support interruption, we must use overlapped IO, which allows us to use the blocking, synchronous mechanism. We create a thread to post the notification to the consumer to allow the monitoring to continue. The two threads communicate via a locked queue. Differential Revision: https://reviews.llvm.org/D88666 Reviewed By: Adrian McCarthy
- Loading branch information
Showing
2 changed files
with
260 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters