summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-02-27 21:19:17 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-03 13:40:33 +0900
commit1bdd9e4dd15fc27da43b50fd29bfb1b0b30ef6bd (patch)
tree168b9a7e716a814e8cdc476be53c61565a47ff3b /src/tests/eo
parent1c74aaa7e9c9fa1732b467aca5ee1458e3721f0a (diff)
ecore - a different take on efl.app class as a super class to efl.loop
so the MAIN loop is actually an efl.app object. which inherits from efl.loop. the idea is that other loops in threads will not be efl.app objects. thread on the creator side return an efl.thread object. inside the thread, like the mainloop, there is now an efl.appthread object that is for all non-main-loop threads. every thread (main loop or child) when it spawns a thread is the parent. there are i/o pipes from parnet to child and back. so parents are generally expected to, if they want to talk to child thread, so use the efl.io interfaces on efl.thread, and the main loop's elf.app class allows you to talk to stdio back to the parent process like the efl.appthread does the same using the efl.io interfaces to talk to its parent app or appthread. it's symmetrical no tests here - sure. i have been holding off on tests until things settle. that's why i haven't done them yet. those will come back in a subsequent commit for really quick examples on using this see: https://phab.enlightenment.org/F2983118 https://phab.enlightenment.org/F2983142 they are just my test code for this. Please see this design document: https://phab.enlightenment.org/w/efl-loops-threads/
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/signals/signals_simple.c4
-rw-r--r--src/tests/eo/suite/eo_test_general.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/src/tests/eo/signals/signals_simple.c b/src/tests/eo/signals/signals_simple.c
index 9449c3f8c0..0e016dc550 100644
--- a/src/tests/eo/signals/signals_simple.c
+++ b/src/tests/eo/signals/signals_simple.c
@@ -32,7 +32,7 @@ void
32_cb_added(void *data EINA_UNUSED, const Efl_Event *event) 32_cb_added(void *data EINA_UNUSED, const Efl_Event *event)
33{ 33{
34 Simple_Public_Data *pd = efl_data_scope_get(event->object, MY_CLASS); 34 Simple_Public_Data *pd = efl_data_scope_get(event->object, MY_CLASS);
35 const Efl_Callback_Array_Item *callback_array = event->info; 35 const Efl_Callback_Array_Item_Full *callback_array = event->info;
36 36
37 if (callback_array->desc != EV_A_CHANGED) 37 if (callback_array->desc != EV_A_CHANGED)
38 return; 38 return;
@@ -46,7 +46,7 @@ void
46_cb_deled(void *data EINA_UNUSED, const Efl_Event *event) 46_cb_deled(void *data EINA_UNUSED, const Efl_Event *event)
47{ 47{
48 Simple_Public_Data *pd = efl_data_scope_get(event->object, MY_CLASS); 48 Simple_Public_Data *pd = efl_data_scope_get(event->object, MY_CLASS);
49 const Efl_Callback_Array_Item *callback_array = event->info; 49 const Efl_Callback_Array_Item_Full *callback_array = event->info;
50 50
51 if (callback_array->desc != EV_A_CHANGED) 51 if (callback_array->desc != EV_A_CHANGED)
52 return; 52 return;
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index e475889e95..18684f1ad2 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -181,11 +181,9 @@ _eo_signals_efl_del_cb(void *_data EINA_UNUSED, const Efl_Event *event EINA_UNUS
181void 181void
182_eo_signals_cb_added_deled(void *data, const Efl_Event *event) 182_eo_signals_cb_added_deled(void *data, const Efl_Event *event)
183{ 183{
184 const Efl_Callback_Array_Item *callback_array = event->info; 184 const Efl_Callback_Array_Item_Full *callback_array = event->info;
185 const Efl_Callback_Array_Item *(*callback_data)(void) = data;
186 185
187 fail_if((callback_data() != callback_array) && 186 fail_if(callback_array->func != _eo_signals_cb_added_deled);
188 (callback_array->func != _eo_signals_cb_added_deled));
189} 187}
190 188
191EFL_CALLBACKS_ARRAY_DEFINE(_eo_signals_callbacks, 189EFL_CALLBACKS_ARRAY_DEFINE(_eo_signals_callbacks,