Commit f3e9f1e6 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish FileSystemWatcher and improve its thread safety

- Limit shared state between FileSystemWatcher and the watching thread
- Use a private monitor rather than synchronizing on this
- Use a Runnable implementation rather than subclassing Thread
- Synchronize consistently when reading and writing state

Closes gh-6039
parent 3772d9f9
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment