forked from enlightenment/efl
efreet: set process priority on Windows too.
This commit is contained in:
parent
4ea2abb602
commit
2859d76402
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue