aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/runextensions.cpp
Commit message (Collapse)AuthorAgeFilesLines
* runAsync: Fix issue with deleting threadEike Ziller2016-01-291-1/+0
| | | | | | | | | | | | deleteLater schedules the event in the current thread, so we may not use it directly on a thread from within the thread itself... Instead connect the threads finished signal to its deleteLater slot. To avoid problems if runAsync is not run from the main thread, move the thread to the main thread before starting it. Task-number: QTCREATORBUG-15688 Change-Id: Iea003d00c58d1f921fb0b4ddf9cf67dcb1379833 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* runAsync: Fix unexpected behavior for using singleShot/timers etcEike Ziller2016-01-281-0/+46
Timers/singleShot etc can only be used in QThreads (they require the event dispatcher). So we have to use QThreads instead of std::threads to nicely interoperate with Qt features. Task-number: QTCREATORBUG-15681 Change-Id: I851e2f102e15ccd3347d455cc9d8b7df935c2d5e Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>