From 2360a2d743514014db57ec143c5ff1b469e5ada1 Mon Sep 17 00:00:00 2001 From: hjk Date: Mon, 13 Mar 2017 13:48:55 +0100 Subject: ProjectExplorer: Run RunControl::{start,stop} always asynchronously This introduces a mini-state-"machine" to handle RunControl states Intialized->[Starting->Running->Stopping->Stopped->]*->Finished. Needing time between trying to start and getting feedback is nowadays the normal setup for all remote targets as well as for most local tools. Making that the default for all runs simplifies the code and provides an opportunity to (a) fix some currently wrong reports of "stopped immediately" and (b) to remove target-specific (WinRT) or tool-specific (Valgrind, GammaRay) state members doing essentially the same. Change-Id: I7f52fee41144188ee8389e922fdc265f8c0a6459 Reviewed-by: David Schulz Reviewed-by: Tobias Hunger --- src/plugins/ios/iosruncontrol.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/plugins/ios/iosruncontrol.cpp') diff --git a/src/plugins/ios/iosruncontrol.cpp b/src/plugins/ios/iosruncontrol.cpp index 1699704532..30311f1300 100644 --- a/src/plugins/ios/iosruncontrol.cpp +++ b/src/plugins/ios/iosruncontrol.cpp @@ -64,10 +64,9 @@ void IosRunControl::start() m_runner->start(); } -RunControl::StopResult IosRunControl::stop() +void IosRunControl::stop() { m_runner->stop(); - return StoppedSynchronously; } void IosRunControl::handleRemoteProcessFinished(bool cleanEnd) -- cgit v1.2.1