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:
Derek Foreman 2016-08-24 14:20:17 -05:00
parent f125942231
commit e0c1f4a2a7
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@ evas_thread_init(void)
CRI("Could not create draw thread condition");
if (!eina_thread_create(&evas_thread_worker, EINA_THREAD_NORMAL, 0,
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