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:
parent
214ced325f
commit
f4290cb330
|
@ -43,17 +43,6 @@ _efl_threadio_outdata_get(const Eo *obj EINA_UNUSED, Efl_ThreadIO_Data *pd)
|
|||
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"
|
||||
|
|
|
@ -39,13 +39,13 @@ mixin @beta Efl.ThreadIO
|
|||
data: void_ptr; [[Data pointer.]]
|
||||
}
|
||||
}
|
||||
call {
|
||||
call @pure_virtual {
|
||||
[[Executes a method on a different thread, asynchronously.]]
|
||||
params {
|
||||
func: EflThreadIOCall; [[The method to execute asynchronously.]]
|
||||
}
|
||||
}
|
||||
call_sync {
|
||||
call_sync @pure_virtual {
|
||||
[[Executes a method on a different thread, synchronously.
|
||||
This call will not return until the method finishes and its return value can be recovered.
|
||||
]]
|
||||
|
|
Loading…
Reference in New Issue