summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2017-09-13 15:51:49 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-09-13 15:53:00 -0700
commitba34b998eb6920fe0dbccd1037e8344c028754ec (patch)
tree246c0b331f94e35fc3cddf701e0da73fd36ce0f6 /src
parenta9aed90fde2405d40cb51cc6ac25fd52714d82bb (diff)
ecore: allow efl_loop_future_scheduler_get on all Efl.Loop.User.
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore/efl_loop_user.c6
-rw-r--r--src/lib/ecore/efl_loop_user.eo12
2 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/ecore/efl_loop_user.c b/src/lib/ecore/efl_loop_user.c
index 530772fc64..4bcfaad41d 100644
--- a/src/lib/ecore/efl_loop_user.c
+++ b/src/lib/ecore/efl_loop_user.c
@@ -29,4 +29,10 @@ _efl_loop_user_efl_object_parent_set(Eo *obj, Efl_Loop_User_Data *pd EINA_UNUSED
29 efl_parent_set(efl_super(obj, EFL_LOOP_USER_CLASS), parent); 29 efl_parent_set(efl_super(obj, EFL_LOOP_USER_CLASS), parent);
30} 30}
31 31
32static Eina_Future_Scheduler *
33_efl_loop_user_future_scheduler_get(Eo *obj, Efl_Loop_User_Data *pd EINA_UNUSED)
34{
35 return efl_loop_future_scheduler_get(efl_loop_get(obj));
36}
37
32#include "efl_loop_user.eo.c" 38#include "efl_loop_user.eo.c"
diff --git a/src/lib/ecore/efl_loop_user.eo b/src/lib/ecore/efl_loop_user.eo
index 048888bbca..67cc9b3e7d 100644
--- a/src/lib/ecore/efl_loop_user.eo
+++ b/src/lib/ecore/efl_loop_user.eo
@@ -14,6 +14,18 @@ class Efl.Loop_User (Efl.Object)
14 loop: Efl.Loop; [[Efl loop]] 14 loop: Efl.Loop; [[Efl loop]]
15 } 15 }
16 } 16 }
17 @property future_scheduler {
18 [[Gets the Eina_Future_Scheduler for a given mainloop.
19
20 The Eina_Future_Scheduler returned by this function
21 should be used for creating promises (eina_promise_new())
22 so then can properly schedule resolve/reject events.
23 ]]
24 get {}
25 values {
26 scheduler: ptr(Eina.Future.Scheduler); [[The scheduler.]]
27 }
28 }
17 } 29 }
18 implements { 30 implements {
19 Efl.Object.parent { set; } 31 Efl.Object.parent { set; }