ecore - efl threads - add thredio class
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Tue, 6 Mar 2018 11:49:51 +0000 (20:49 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Tue, 10 Apr 2018 11:10:47 +0000 (20:10 +0900)
commit9da10fe8febda31d59a1c6ac3a7ee01e6bb317de
tree322ef7a876be1ad8e79e6d22fe73b55a34f36b4c
parentf170e238113dd88cdd6615bfa738a9f63996f758
ecore - efl threads - add thredio class

this adds a simple indata and outdata void ptr to begin that you can
set on efl.thread objects (set the indata) and get the outdata too to
get results. then on the efl.appthread side the indata is set on the
efl.appthread before it runs and on quit the thresad can set the
outdata on the appthread, and this appears back on the efl.thread
object in the parent thread.

so you can basically share pointers to anything in and out this way on
start/exit in addition to string args etc.

the reason i made it an extra class (mixin actually) is for future
expansion. sharing more complex data - eina values maybe or objects as
long as they are shared objects, and perhaps acting as an interface
for calling a function at the other end like ecore_thread_async_call
etc.
src/Makefile_Ecore.am
src/lib/ecore/Ecore_Eo.h
src/lib/ecore/ecore_private.h
src/lib/ecore/efl_appthread.c
src/lib/ecore/efl_appthread.eo
src/lib/ecore/efl_thread.c
src/lib/ecore/efl_thread.eo
src/lib/ecore/efl_threadio.c [new file with mode: 0644]
src/lib/ecore/efl_threadio.eo [new file with mode: 0644]