summaryrefslogtreecommitdiff
path: root/src/bin/efreet
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-11 21:10:51 +0200
committerCedric Bail <cedric.bail@samsung.com>2013-07-12 08:42:08 +0900
commit2859d7640242ab89d2360c6a408949252c527ebf (patch)
tree1720bb14f9f94399d2b1b437b95508e7f0df9055 /src/bin/efreet
parent4ea2abb6026318e05df44b4827ad1e98190b762e (diff)
efreet: set process priority on Windows too.
Diffstat (limited to 'src/bin/efreet')
-rw-r--r--src/bin/efreet/efreet_desktop_cache_create.c2
-rw-r--r--src/bin/efreet/efreet_icon_cache_create.c2
-rw-r--r--src/bin/efreet/efreetd.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/efreet/efreet_desktop_cache_create.c b/src/bin/efreet/efreet_desktop_cache_create.c
index e44b725666..4a25575de8 100644
--- a/src/bin/efreet/efreet_desktop_cache_create.c
+++ b/src/bin/efreet/efreet_desktop_cache_create.c
@@ -256,6 +256,8 @@ main(int argc, char **argv)
256 256
257#ifdef HAVE_SYS_RESOURCE_H 257#ifdef HAVE_SYS_RESOURCE_H
258 setpriority(PRIO_PROCESS, 0, 19); 258 setpriority(PRIO_PROCESS, 0, 19);
259#elif _WIN32
260 SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
259#endif 261#endif
260 262
261 /* init external subsystems */ 263 /* init external subsystems */
diff --git a/src/bin/efreet/efreet_icon_cache_create.c b/src/bin/efreet/efreet_icon_cache_create.c
index 3c3bc23404..98e265177f 100644
--- a/src/bin/efreet/efreet_icon_cache_create.c
+++ b/src/bin/efreet/efreet_icon_cache_create.c
@@ -774,6 +774,8 @@ main(int argc, char **argv)
774 774
775#ifdef HAVE_SYS_RESOURCE_H 775#ifdef HAVE_SYS_RESOURCE_H
776 setpriority(PRIO_PROCESS, 0, 19); 776 setpriority(PRIO_PROCESS, 0, 19);
777#elif _WIN32
778 SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
777#endif 779#endif
778 780
779 if (!eet_init()) return -1; 781 if (!eet_init()) return -1;
diff --git a/src/bin/efreet/efreetd.c b/src/bin/efreet/efreetd.c
index 92282642cb..f37724a304 100644
--- a/src/bin/efreet/efreetd.c
+++ b/src/bin/efreet/efreetd.c
@@ -54,6 +54,8 @@ main(int argc, char *argv[])
54 54
55#ifdef HAVE_SYS_RESOURCE_H 55#ifdef HAVE_SYS_RESOURCE_H
56 setpriority(PRIO_PROCESS, 0, 19); 56 setpriority(PRIO_PROCESS, 0, 19);
57#elif _WIN32
58 SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
57#endif 59#endif
58 60
59 ecore_main_loop_begin(); 61 ecore_main_loop_begin();