summaryrefslogtreecommitdiff
path: root/src/plugins/coreplugin/reaper.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-10-17 12:17:51 +0200
committerTobias Hunger <tobias.hunger@qt.io>2016-10-28 12:28:46 +0000
commitb75c6444d1d0f3abb796b23d78a24029f9fb5093 (patch)
tree504e4c6c90b2ca26cc22a58346f0a41f03196982 /src/plugins/coreplugin/reaper.h
parent9e72dc343c5b100b35a4c52ca9f34e6989156244 (diff)
downloadqt-creator-b75c6444d1d0f3abb796b23d78a24029f9fb5093.tar.gz
Core: Add a reaper that will asynchronously clean up QProcesses
Change-Id: Ic24dde261eac775d1a5854b8dbcbfeb002d0f729 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/coreplugin/reaper.h')
-rw-r--r--src/plugins/coreplugin/reaper.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/plugins/coreplugin/reaper.h b/src/plugins/coreplugin/reaper.h
new file mode 100644
index 0000000000..7c2b2a356a
--- /dev/null
+++ b/src/plugins/coreplugin/reaper.h
@@ -0,0 +1,38 @@
+/****************************************************************************
+**
+** Copyright (C) 2016 The Qt Company Ltd.
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qt Creator.
+**
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3 as published by the Free Software
+** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
+** included in the packaging of this file. Please review the following
+** information to ensure the GNU General Public License requirements will
+** be met: https://www.gnu.org/licenses/gpl-3.0.html.
+**
+****************************************************************************/
+
+#pragma once
+
+#include "core_global.h"
+
+QT_FORWARD_DECLARE_CLASS(QProcess);
+
+namespace Core {
+namespace Reaper {
+
+CORE_EXPORT void reap(QProcess *p, int timeoutMs = 500);
+
+} // namespace Reaper
+} // namespace Core