forked from enlightenment/efl
parent
4748c05e38
commit
2c397940de
|
@ -447,8 +447,8 @@ ecore_thread_run(Ecore_Cb func_blocking,
|
|||
struct sched_param param;
|
||||
|
||||
memset(¶m, 0, sizeof(param));
|
||||
param.sched_priority = sched_get_priority_min(SCHED_RR);
|
||||
pthread_setschedparam(pth->thread, SCHED_RR, ¶m);
|
||||
param.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
||||
pthread_setschedparam(pth->thread, SCHED_OTHER, ¶m);
|
||||
|
||||
return (Ecore_Thread *) work;
|
||||
}
|
||||
|
@ -623,8 +623,8 @@ EAPI Ecore_Thread *ecore_long_run(Ecore_Thread_Heavy_Cb func_heavy,
|
|||
struct sched_param param;
|
||||
|
||||
memset(¶m, 0, sizeof(param));
|
||||
param.sched_priority = sched_get_priority_min(SCHED_RR);
|
||||
pthread_setschedparam(t, SCHED_RR, ¶m);
|
||||
param.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
||||
pthread_setschedparam(t, SCHED_OTHER, ¶m);
|
||||
|
||||
return (Ecore_Thread *) worker;
|
||||
}
|
||||
|
@ -655,8 +655,8 @@ EAPI Ecore_Thread *ecore_long_run(Ecore_Thread_Heavy_Cb func_heavy,
|
|||
struct sched_param param;
|
||||
|
||||
memset(¶m, 0, sizeof(param));
|
||||
param.sched_priority = sched_get_priority_min(SCHED_RR);
|
||||
pthread_setschedparam(pth->thread, SCHED_RR, ¶m);
|
||||
param.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
||||
pthread_setschedparam(pth->thread, SCHED_OTHER, ¶m);
|
||||
|
||||
return (Ecore_Thread *) worker;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue