# Check gmock
PKG_CHECK_MODULES(GMOCK, [gmock])
+# Check system resource library
+PKG_CHECK_MODULES(SYSTEM_RESOURCE, [capi-system-resource])
+
if test "$ISF_HAS_VCONF" = "yes"; then
AC_DEFINE(HAVE_VCONF,1,[Have VConf functions.])
fi
#include <glib.h>
#include <tzplatform_config.h>
#include <system_info.h>
+#include <cpu-boosting.h>
#include "scim_private.h"
#include "scim.h"
static void set_language_and_locale (const char *lang_str);
static bool app_control_launch (const char *app_id);
static void terminate_active_ise (const String uuid);
+static void set_cpu_boosting (void);
+static void clear_cpu_boosting (void);
/////////////////////////////////////////////////////////////////////////////
// Declaration of internal variables.
}
}
+static void set_cpu_boosting ()
+{
+ resource_pid_t resource_st;
+ resource_st.pid = getpid();
+ int ret = resource_set_cpu_boosting(resource_st, CPU_BOOSTING_LEVEL_STRONG, CPU_BOOSTING_RESET_ON_FORK, -1);
+ if (ret != 0)
+ LOGE("Failed to set cpu boosting");
+}
+
+static void clear_cpu_boosting ()
+{
+ resource_pid_t resource_st;
+ resource_st.pid = getpid();
+ int ret = resource_clear_cpu_boosting(resource_st);
+ if (ret != 0)
+ LOGE("Failed to clear cpu boosting");
+}
+
static void slot_run_helper (const String &uuid, const String &config, const String &display)
{
ISF_SAVE_LOG ("time:%ld pid:%d %s %s uuid(%s)",
ConfigBase::set (_config);
check_time ("create config instance");
+ set_cpu_boosting();
+
try {
if (!initialize_panel_agent (_config, display_name, should_resident)) {
check_time ("Failed to initialize Panel Agent!");
if (!isf_cynara_initialize())
LOGW ("Failed to initialize cynara");
+ clear_cpu_boosting();
+
#if ISF_BUILD_CANDIDATE_UI
elm_run ();
#else
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(gmock)
BuildRequires: pkgconfig(gio-2.0)
+BuildRequires: pkgconfig(capi-system-resource)
Requires(postun): /sbin/ldconfig
Requires: org.tizen.isf-kbd-mode-changer