Efl.ThreadIO: replace empty implementations with @pure_virtual

The implementation for call and call_async are empty on this mixin.
I think removing them and marking them as @pure_virtual in the EO file is cleaner.
This commit is contained in:
Xavi Artigas 2019-09-18 13:40:32 +02:00
parent 214ced325f
commit f4290cb330
2 changed files with 2 additions and 13 deletions

View File

@ -43,17 +43,6 @@ _efl_threadio_outdata_get(const Eo *obj EINA_UNUSED, Efl_ThreadIO_Data *pd)
return pd->outdata; return pd->outdata;
} }
EOLIAN static void
_efl_threadio_call(Eo *obj EINA_UNUSED, Efl_ThreadIO_Data *pd EINA_UNUSED, void *func_data EINA_UNUSED, EflThreadIOCall func EINA_UNUSED, Eina_Free_Cb func_free_cb EINA_UNUSED)
{
}
EOLIAN static void *
_efl_threadio_call_sync(Eo *obj EINA_UNUSED, Efl_ThreadIO_Data *pd EINA_UNUSED, void *func_data EINA_UNUSED, EflThreadIOCallSync func EINA_UNUSED, Eina_Free_Cb func_free_cb EINA_UNUSED)
{
return NULL;
}
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
#include "efl_threadio.eo.c" #include "efl_threadio.eo.c"

View File

@ -39,13 +39,13 @@ mixin @beta Efl.ThreadIO
data: void_ptr; [[Data pointer.]] data: void_ptr; [[Data pointer.]]
} }
} }
call { call @pure_virtual {
[[Executes a method on a different thread, asynchronously.]] [[Executes a method on a different thread, asynchronously.]]
params { params {
func: EflThreadIOCall; [[The method to execute asynchronously.]] func: EflThreadIOCall; [[The method to execute asynchronously.]]
} }
} }
call_sync { call_sync @pure_virtual {
[[Executes a method on a different thread, synchronously. [[Executes a method on a different thread, synchronously.
This call will not return until the method finishes and its return value can be recovered. This call will not return until the method finishes and its return value can be recovered.
]] ]]