summaryrefslogtreecommitdiff
path: root/zen/dir_watcher.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2016-10-29 11:35:33 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2016-10-29 11:35:33 +0200
commit8dd4a066ca0312ff03595b96a75abc8c6123f576 (patch)
treecf6aac6897f1ae4244b4b309627fc28902da2df9 /zen/dir_watcher.cpp
parent8.4 (diff)
downloadFreeFileSync-8dd4a066ca0312ff03595b96a75abc8c6123f576.tar.gz
FreeFileSync-8dd4a066ca0312ff03595b96a75abc8c6123f576.tar.bz2
FreeFileSync-8dd4a066ca0312ff03595b96a75abc8c6123f576.zip
8.5
Diffstat (limited to 'zen/dir_watcher.cpp')
-rw-r--r--zen/dir_watcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/dir_watcher.cpp b/zen/dir_watcher.cpp
index 0c55a963..769aa4f2 100644
--- a/zen/dir_watcher.cpp
+++ b/zen/dir_watcher.cpp
@@ -344,9 +344,9 @@ DirWatcher::~DirWatcher()
if (pimpl_->worker.joinable()) //= thread::detach() precondition! -> may already be joined by HandleVolumeRemoval::onRequestRemoval()
{
pimpl_->worker.interrupt();
- pimpl_->worker.detach(); //we don't have time to wait... will take ~50ms anyway:
+ pimpl_->worker.detach(); //we don't have time to wait... would take ~50ms
+ //Windows caveat: exitting the app will kill the thread and leak memory!
}
- //caveat: exitting the app may simply kill this thread!
}
bgstack15