diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-04-27 18:57:02 +0200 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2022-04-28 20:15:30 +0000 |
commit | 703dbd9c798f4a373f8c48c477a4a67fc7ae9408 (patch) | |
tree | e71cb248d0a623d2a8d1cb321b31273fdb266621 /src/plugins/texteditor/texteditor_global.h | |
parent | b971c2731247df84134038deea16db92d63a6961 (diff) |
QtcProcess: Add a warning when starting a process in non-QThread
When a QProcess is being started in a thread that doesn't have
event dispatcher installed, e.g. in a thread started with
std::async(), the process signals are emitted only from inside
QProcess::waitFor...() functions, but not emitted spontaneously.
This may cause issues when adding the running process into the
ProcessReaper, as the implementation of the latter relies on
signal emission and doesn't use blocking API of QProcess.
Currently there is one case like this: ProcessCreator::createProcess()
of clangsupport library.
Change-Id: I823a139b356f62fee9e0e5d6fc8326301c36b449
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src/plugins/texteditor/texteditor_global.h')
0 files changed, 0 insertions, 0 deletions