summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore.c
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/ecore/ecore_test_ecore.c
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/ecore/ecore_test_ecore.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index 492c2aa033..6fd95738f4 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -896,11 +896,11 @@ START_TEST(ecore_test_efl_app_version)
896 896
897 ecore_init(); 897 ecore_init();
898 898
899 loop = efl_loop_main_get(EFL_LOOP_CLASS); 899 loop = efl_app_loop_main_get(EFL_APP_CLASS);
900 fail_if(!efl_isa(loop, EFL_LOOP_CLASS)); 900 fail_if(!efl_isa(loop, EFL_LOOP_CLASS));
901 901
902 efl_build_version_set(EFL_VERSION_MAJOR, EFL_VERSION_MINOR, 0, 0, NULL, EFL_BUILD_ID); 902 efl_build_version_set(EFL_VERSION_MAJOR, EFL_VERSION_MINOR, 0, 0, NULL, EFL_BUILD_ID);
903 ver = efl_loop_app_efl_version_get(loop); 903 ver = efl_app_build_efl_version_get(loop);
904 fail_if(!ver); 904 fail_if(!ver);
905 fail_if(ver->major != EFL_VERSION_MAJOR); 905 fail_if(ver->major != EFL_VERSION_MAJOR);
906 fail_if(ver->minor != EFL_VERSION_MINOR); 906 fail_if(ver->minor != EFL_VERSION_MINOR);
@@ -909,7 +909,7 @@ START_TEST(ecore_test_efl_app_version)
909 fail_if(ver->flavor); 909 fail_if(ver->flavor);
910 fail_if(!eina_streq(ver->build_id, EFL_BUILD_ID)); 910 fail_if(!eina_streq(ver->build_id, EFL_BUILD_ID));
911 911
912 ver = efl_loop_efl_version_get(loop); 912 ver = efl_app_efl_version_get(loop);
913 fail_if(!ver); 913 fail_if(!ver);
914 fail_if(ver->major != EFL_VERSION_MAJOR); 914 fail_if(ver->major != EFL_VERSION_MAJOR);
915 fail_if(ver->minor != EFL_VERSION_MINOR); 915 fail_if(ver->minor != EFL_VERSION_MINOR);