If the SCHED_PRIORITY value is not 0, the app-defined-loader and the
launchpad-loader set the scheduling priority to 0.
Change-Id: I0281548e724f2d3a7caba981630d48d3a790a6e2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
+ auto* priority = bundle_get_val(extra, "SCHED_PRIORITY");
+ if (priority && strcmp(priority, "0") != 0)
+ SchedPriority::Set(0);
}
static int OnLaunch(int argc, char** argv, const char* app_path,
}
static int OnLaunch(int argc, char** argv, const char* app_path,
InitializeElementary();
hw_acc_config_.reset(new launchpad::HWAccelerationConfig());
InitializeElementary();
hw_acc_config_.reset(new launchpad::HWAccelerationConfig());
+ auto priority = extra.GetString("SCHED_PRIORITY");
+ if (priority != "0")
+ SchedPriority::Set(0);
}
int LaunchpadLoader::OnLaunch(const LaunchArgs& args) {
}
int LaunchpadLoader::OnLaunch(const LaunchArgs& args) {
on_boot_timeout_(on_boot_timeout),
sched_priority_(sched_priority),
condition_path_exists_(std::move(condition_path_exists)) {
on_boot_timeout_(on_boot_timeout),
sched_priority_(sched_priority),
condition_path_exists_(std::move(condition_path_exists)) {
+ extra_.Add("SCHED_PRIORITY", std::to_string(sched_priority_));
}
LoaderType LoaderInfo::GetType() const {
}
LoaderType LoaderInfo::GetType() const {