forked from enlightenment/efl
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:
parent
0e035b2e22
commit
0fddfe199f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue