aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore/ecore.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-01-07 16:42:24 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-01-07 16:45:07 +0100
commite5ddfb4b2b76304aae9c7c15f465d7ef9863a2c0 (patch)
tree23794706e6ed48e3ed33506422257049c0324724 /src/lib/ecore/ecore.c
parentecore-evas-drm: Fix formatting (diff)
downloadefl-e5ddfb4b2b76304aae9c7c15f465d7ef9863a2c0.tar.gz
ecore: add ecore_thread_wait and necessary infrastructure.
This enable the possibility to block the main loop until a specific thread is done. It may trigger still process ending of other thread during that function call, but not any other type of event (timer, animator, idler, ... are all ignored).
Diffstat (limited to 'src/lib/ecore/ecore.c')
-rw-r--r--src/lib/ecore/ecore.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index d0ee1e95f5..0e485843fc 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -583,6 +583,12 @@ ecore_main_loop_thread_safe_call_sync(Ecore_Data_Cb callback,
return ret;
}
+EAPI void
+ecore_main_loop_thread_safe_call_wait(double wait)
+{
+ ecore_pipe_wait(_thread_call, 1, wait);
+}
+
EAPI int
ecore_thread_main_loop_begin(void)
{