System: add a Windows DirectoryWatcher backend
Implement DirectoryWatcher on Windows with ReadDirectoryChangesW: one recursive handle, a dedicated watcher thread feeding a bounded queue, a condition variable for poll timeouts, rename pairing, ignore filtering and RescanRequired on buffer overflow. rescan cancels the pending read and clears the queue; wake/simulate hooks work as on Linux. Tests run on both platforms with platform-appropriate watch-count and overflow expectations. Verified under Wine 11 (x86_64-w64-mingw32 GCC 16.2): full VoidTests.exe suite passes (1337 tests, 1325 passed, 12 skipped, 0 failed). Linux System+Testing suite unchanged (477 tests, 474 passed). Closes #65
This commit is contained in:
1 parent
796609787e
commit
482a3ea46b
3 files changed
+377
-8
No files matched your search
@@ -126,6 +126,9 @@ Notes from the runtime run:
|
||||
there, and runtime verification under Wine is still pending.
|
||||
- Tests that only exercise POSIX APIs carry `// @requires-posix` and are
|
||||
skipped on Windows; the POSIX process helper is not built there.
|
||||
- `DirectoryWatcher` has a Windows backend based on
|
||||
`ReadDirectoryChangesW` (recursive handle, events delivered by a watcher
|
||||
thread); `IO`'s native backend is still Linux-only (IOCP is a separate task).
|
||||
- `Observability` links after replacing the namespace-scope
|
||||
`inline thread_local` hook stack with a function-local `thread_local`
|
||||
accessor (MinGW emitted duplicate TLS init functions).
|
||||
|
||||
Reference in new issue
Block a user