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.
This commit is contained in:
Cedric BAIL 2018-04-05 10:39:30 -07:00
parent 978901903d
commit 621f34d322
1 changed files with 3 additions and 0 deletions

View File

@ -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 ||