ecore: poll the thread pipe twice during shutdown

Summary:
this resolves a race condition when a thread join was pending during
shutdown but a pipe write was needed in order for the join to be
successfully executed before shutdown had occurred

@fix

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5866

Reviewed-by: Cedric Bail <cedric@osg.samsung.com>
This commit is contained in:
Mike Blumenkrantz 2018-04-06 10:08:23 -07:00 committed by Cedric Bail
parent 0e035b2e22
commit 0fddfe199f
1 changed files with 1 additions and 0 deletions

View File

@ -424,6 +424,7 @@ ecore_shutdown(void)
* It should be fine now as we do wait for thread to shutdown before
* we try to destroy the pipe.
*/
_ecore_pipe_wait(_thread_call, 1, 0.1);
p = _thread_call;
_thread_call = NULL;
_ecore_pipe_wait(p, 1, 0.1);