Do not call moveToThread(this) in QWindowsFileSystemWatcherEngineThread
authorBradley T. Hughes <bradley.hughes@nokia.com>
Thu, 12 Jan 2012 10:43:23 +0000 (11:43 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 12 Jan 2012 13:38:11 +0000 (14:38 +0100)
This is considered bad practice, and gives no benefit as the threads do
not use an eventloop.

Change-Id: I0de9eca97948571cf5091e2f1b19bb1faab3e2ac
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/corelib/io/qfilesystemwatcher_win.cpp

index 3028f94..e82a9a5 100644 (file)
@@ -297,7 +297,6 @@ QWindowsFileSystemWatcherEngineThread::QWindowsFileSystemWatcherEngineThread()
         handles.reserve(MAXIMUM_WAIT_OBJECTS);
         handles.append(h);
     }
-    moveToThread(this);
 }