diff options
author | Changgyu Choi <changyu.choi@samsung.com> | 2023-11-10 13:23:38 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2023-11-14 14:43:09 +0900 |
commit | 569a31017c4876e3e61895a87765c9ea4f055b3c (patch) | |
tree | 03a40bf3bb0ee4a41d8054bffec25856a7dcb6ba | |
parent | f08a5ed8eeb32ffcb72666da8d237f3ec97d8fd1 (diff) | |
download | launchpad-569a31017c4876e3e61895a87765c9ea4f055b3c.tar.gz launchpad-569a31017c4876e3e61895a87765c9ea4f055b3c.tar.bz2 launchpad-569a31017c4876e3e61895a87765c9ea4f055b3c.zip |
Remove SendStartupSignal step
This step is moved to aul lib constuctor.
Change-Id: I35b7f791c3c5c9ed8e33233c7ef88506d10c3cfc
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
-rw-r--r-- | src/launchpad-process-pool/app_executor.cc | 7 | ||||
-rw-r--r-- | src/launchpad-process-pool/app_executor.hh | 1 | ||||
-rw-r--r-- | src/lib/launchpad/step_prepare_execution.cc | 9 | ||||
-rw-r--r-- | src/lib/launchpad/step_prepare_execution.hh | 1 |
4 files changed, 0 insertions, 18 deletions
diff --git a/src/launchpad-process-pool/app_executor.cc b/src/launchpad-process-pool/app_executor.cc index 06dda58..db3d09f 100644 --- a/src/launchpad-process-pool/app_executor.cc +++ b/src/launchpad-process-pool/app_executor.cc @@ -87,8 +87,6 @@ AppExecutor::AppExecutor() : Executor(this) { std::bind(&AppExecutor::StepWaitTepMount, this)); prepare_funcs_.push_back( std::bind(&AppExecutor::StepPrepareAppSocketAndIdFile, this)); - prepare_funcs_.push_back( - std::bind(&AppExecutor::StepSendStartupSignal, this)); auto& process_pool_config = Config::GetInst().GetProcessPool(); process_pool_ = std::unique_ptr<ProcessPool>( @@ -257,11 +255,6 @@ int AppExecutor::StepPrepareAppSocketAndIdFile() { return Util::PrepareAppIdFile(app_info_); } -int AppExecutor::StepSendStartupSignal() { - Util::SendCmdToAmd(AmdCmd::AppStartupSignal); - return 0; -} - void AppExecutor::CheckAndPrepareDebugging() { auto& debug = Debug::GetInst(); auto& b = app_info_->GetBundle(); diff --git a/src/launchpad-process-pool/app_executor.hh b/src/launchpad-process-pool/app_executor.hh index 94b23fa..e056353 100644 --- a/src/launchpad-process-pool/app_executor.hh +++ b/src/launchpad-process-pool/app_executor.hh @@ -58,7 +58,6 @@ class AppExecutor : public Executor::Delegator, int StepSetEnvironments(); int StepWaitTepMount(); int StepPrepareAppSocketAndIdFile(); - int StepSendStartupSignal(); void CheckAndPrepareDebugging(); std::vector<std::string> GetLauncherArgv(const std::string& app_type); diff --git a/src/lib/launchpad/step_prepare_execution.cc b/src/lib/launchpad/step_prepare_execution.cc index 1c19ce0..248b947 100644 --- a/src/lib/launchpad/step_prepare_execution.cc +++ b/src/lib/launchpad/step_prepare_execution.cc @@ -61,8 +61,6 @@ StepPrepareExecution::StepPrepareExecution() { std::placeholders::_1), std::bind(&StepPrepareExecution::PrepareIdFile, this, std::placeholders::_1), - std::bind(&StepPrepareExecution::SendStartupSignal, this, - std::placeholders::_1), }; } @@ -189,11 +187,4 @@ int StepPrepareExecution::PrepareIdFile(AppInfo* app_info) { return 0; } -int StepPrepareExecution::SendStartupSignal(AppInfo* app_info) { - if (Util::SendCmdToAmd(AmdCmd::AppStartupSignal) != 0) - _W("Failed to send startup signal"); - - return 0; -} - } // namespace launchpad diff --git a/src/lib/launchpad/step_prepare_execution.hh b/src/lib/launchpad/step_prepare_execution.hh index f95514b..ce69814 100644 --- a/src/lib/launchpad/step_prepare_execution.hh +++ b/src/lib/launchpad/step_prepare_execution.hh @@ -43,7 +43,6 @@ class StepPrepareExecution { int WaitTepMount(AppInfo* app_info); int PrepareAppSocket(AppInfo* app_info); int PrepareIdFile(AppInfo* app_info); - int SendStartupSignal(AppInfo* app_info); private: std::vector<std::function<int(AppInfo*)>> steps_; |