efreet: set process priority on Windows too.

This commit is contained in:
Cedric Bail 2013-07-11 21:10:51 +02:00
parent 4ea2abb602
commit 2859d76402
3 changed files with 6 additions and 0 deletions

View File

@ -256,6 +256,8 @@ main(int argc, char **argv)
#ifdef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, 19);
#elif _WIN32
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
#endif
/* init external subsystems */

View File

@ -774,6 +774,8 @@ main(int argc, char **argv)
#ifdef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, 19);
#elif _WIN32
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
#endif
if (!eet_init()) return -1;

View File

@ -54,6 +54,8 @@ main(int argc, char *argv[])
#ifdef HAVE_SYS_RESOURCE_H
setpriority(PRIO_PROCESS, 0, 19);
#elif _WIN32
SetPriorityClass(GetCurrentProcess(), IDLE_PRIORITY_CLASS);
#endif
ecore_main_loop_begin();