Before setting the scheduling priority to the normal priority,
launchpad-process-pool should check whether the launch mode is
"Always_Loader_With_Low_Priority" or not.
Change-Id: I0b8d962f476b895384f37ea19deba020b25dad75
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
std::shared_ptr<Request> request) {
auto loader_context = request->GetAvailableLoaderContext();
if (loader_context->IsPrepared()) {
- SchedPriority::Set(loader_context->GetPid(), 0);
+ if (mode_ == Config::LaunchMode::Mode::AlwaysLoaderWithLowPriority)
+ SchedPriority::Set(loader_context->GetPid(), 0);
+
return LaunchResult::Continue;
}