[PATCH] D88666: DirectoryWatcher: add an implementation for Windows

Saleem Abdulrasool via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 1 08:51:59 PDT 2020


compnerd created this revision.
compnerd added a reviewer: amccarth.
Herald added a project: clang.
compnerd requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D88666

Files:
  clang/lib/DirectoryWatcher/windows/DirectoryWatcher-windows.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88666.295586.patch
Type: text/x-patch
Size: 9553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201001/39836ff2/attachment.bin>


More information about the cfe-commits mailing list