summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/app_launch/device_apps_launcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/app_launch/device_apps_launcher.cc')
-rw-r--r--src/components/application_manager/src/app_launch/device_apps_launcher.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/components/application_manager/src/app_launch/device_apps_launcher.cc b/src/components/application_manager/src/app_launch/device_apps_launcher.cc
index 5f36e41efb..1bf2bbf46d 100644
--- a/src/components/application_manager/src/app_launch/device_apps_launcher.cc
+++ b/src/components/application_manager/src/app_launch/device_apps_launcher.cc
@@ -157,6 +157,20 @@ bool DeviceAppsLauncherImpl::StopLaunchingAppsOnDevice(
return true;
}
+void DeviceAppsLauncherImpl::StopLaunchingAppsOnAllDevices() {
+ SDL_LOG_AUTO_TRACE();
+ sync_primitives::AutoLock lock(launchers_lock_);
+
+ std::for_each(works_launchers_.begin(),
+ works_launchers_.end(),
+ [this](LauncherPtr launcher) {
+ launcher->Clear();
+ free_launchers_.push_back(launcher);
+ });
+
+ works_launchers_.clear();
+}
+
bool DeviceAppsLauncher::LaunchAppsOnDevice(
const std::string& device_mac,
const std::vector<ApplicationDataPtr>& applications_to_launch) {
@@ -176,6 +190,10 @@ bool DeviceAppsLauncher::StopLaunchingAppsOnDevice(
return impl_->StopLaunchingAppsOnDevice(device_mac);
}
+void DeviceAppsLauncher::StopLaunchingAppsOnAllDevices() {
+ impl_->StopLaunchingAppsOnAllDevices();
+}
+
const AppLaunchSettings& DeviceAppsLauncher::settings() const {
return settings_;
}