From 621f34d322945be0fa157bfd49274270af202bde Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Thu, 5 Apr 2018 10:39:30 -0700 Subject: [PATCH] eina: mark thread by default as not cancellable as per Eina documentation. By default all Pthread are cancellable. This leads to strange behavior that happen during shutdown and hasn't been figured out. Most likely fix for T6622. --- src/lib/eina/eina_thread.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/eina/eina_thread.c b/src/lib/eina/eina_thread.c index a9f39dd2f7..c1a1ef0d22 100644 --- a/src/lib/eina/eina_thread.c +++ b/src/lib/eina/eina_thread.c @@ -136,6 +136,9 @@ _eina_internal_call(void *context) void *r; pthread_t self; + // Default this thread to not cancellable as per Eina documentation + eina_thread_cancellable_set(EINA_FALSE, NULL); + EINA_THREAD_CLEANUP_PUSH(free, c); if (c->prio == EINA_THREAD_BACKGROUND ||