forked from enlightenment/efl
evas: Try harder to create the render thread
It's entirely possible that a system doesn't have a cpu 0, so when we try to pin all our render threads onto processor 0 we may fail. This results in some very connfusing build breakage when edje_cc hangs up because its render thread didn't start. So, if starting the thread with affinity fails, let's try without affinity. (This is trivial to reproduce - just use sysfs to turn off cpu0 after boot.) @fix
This commit is contained in:
parent
f125942231
commit
e0c1f4a2a7
|
@ -137,7 +137,9 @@ evas_thread_init(void)
|
||||||
CRI("Could not create draw thread condition");
|
CRI("Could not create draw thread condition");
|
||||||
if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, 0,
|
if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, 0,
|
||||||
evas_thread_worker_func, NULL))
|
evas_thread_worker_func, NULL))
|
||||||
CRI("Could not create draw thread");
|
if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, -1,
|
||||||
|
evas_thread_worker_func, NULL))
|
||||||
|
CRI("Could not create draw thread");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue