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