aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-02-26 19:45:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-02-26 19:47:51 +0900
commit009ec26460e8ccc0e5e2b09bb3718d1066209ec3 (patch)
tree1d683b40ca0a127883a955d29760ab77084a9b8f /src/lib/ecore/ecore.c
parentEvas masking: Simplify map masking shaders. (diff)
downloadefl-009ec26460e8ccc0e5e2b09bb3718d1066209ec3.tar.gz
eina + ecore - fix main loop thread id tracking on fork
if you fork and even if you do ecore_fork_reset() a thread calling ecore_main_loop_thread_safe_call_async(0 for example eill end up resetting the mainloop thread id to itself (a non mainlopo thread) via calling eina_main_loop_is() since pid changed. there is little point in doing this so remove the pid tracking from eina and ensure mainloop thread id is updated in ecore's fork reset. @fix
Diffstat (limited to 'src/lib/ecore/ecore.c')
-rw-r--r--src/lib/ecore/ecore.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index 0e485843fc..298e685d97 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -486,6 +486,7 @@ ecore_fork_reset(void)
Eina_List *l, *ln;
Ecore_Fork_Cb *fcb;
+ eina_main_loop_define();
eina_lock_take(&_thread_safety);
ecore_pipe_del(_thread_call);