diff options
author | Hwankyu Jhun <h.jhun@samsung.com> | 2023-11-15 17:48:34 +0900 |
---|---|---|
committer | Hwankyu Jhun <h.jhun@samsung.com> | 2023-11-15 17:48:34 +0900 |
commit | d32ec0cef1251b3210609e88085532a684fb0f5c (patch) | |
tree | 0e65c5c1b48491dc2add2c17913a7edddeab5c19 | |
parent | 14c0255abbac6791adf1e8b0f1d6710a532091d8 (diff) | |
download | launchpad-d32ec0cef1251b3210609e88085532a684fb0f5c.tar.gz launchpad-d32ec0cef1251b3210609e88085532a684fb0f5c.tar.bz2 launchpad-d32ec0cef1251b3210609e88085532a684fb0f5c.zip |
Send Startup signal
In the loader case, the process already loaded the aul library.
AppStartupSignal is sent while loading the aul library.
Sending AppStartupSignal is needed in the loader case.
Change-Id: I4968fe72992f24d6bf19c957f43967080602f5f0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r-- | src/lib/launchpad/step_prepare_execution.cc | 9 | ||||
-rw-r--r-- | src/lib/launchpad/step_prepare_execution.hh | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/launchpad/step_prepare_execution.cc b/src/lib/launchpad/step_prepare_execution.cc index 248b947..1c19ce0 100644 --- a/src/lib/launchpad/step_prepare_execution.cc +++ b/src/lib/launchpad/step_prepare_execution.cc @@ -61,6 +61,8 @@ StepPrepareExecution::StepPrepareExecution() { std::placeholders::_1), std::bind(&StepPrepareExecution::PrepareIdFile, this, std::placeholders::_1), + std::bind(&StepPrepareExecution::SendStartupSignal, this, + std::placeholders::_1), }; } @@ -187,4 +189,11 @@ 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 ce69814..f95514b 100644 --- a/src/lib/launchpad/step_prepare_execution.hh +++ b/src/lib/launchpad/step_prepare_execution.hh @@ -43,6 +43,7 @@ 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_; |