From a087cfe4049292b726a5fea34f552ad86b44c2ae Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 20 Apr 2010 18:04:22 +0200 Subject: Document that QFileSystemWatcher needs to be destroyed before ~QCoreApp Fixes: QT-3305 Rev-By: Denis --- src/corelib/io/qfilesystemwatcher.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/corelib/io/qfilesystemwatcher.cpp b/src/corelib/io/qfilesystemwatcher.cpp index 00af3fd..18c3c9f 100644 --- a/src/corelib/io/qfilesystemwatcher.cpp +++ b/src/corelib/io/qfilesystemwatcher.cpp @@ -426,6 +426,11 @@ QFileSystemWatcher::QFileSystemWatcher(const QStringList &paths, QObject *parent /*! Destroys the file system watcher. + + \note To avoid deadlocks on shutdown, all instances of QFileSystemWatcher + need to be destroyed before QCoreApplication. Note that passing + QCoreApplication::instance() as the parent object when creating + QFileSystemWatcher is not sufficient. */ QFileSystemWatcher::~QFileSystemWatcher() { -- cgit v0.12