forked from enlightenment/efl
Revert "efl_loop: move scheduler_get to eo API"
This reverts commit f910ba248e
.
The scheduler is meant to be used only in C, not by bindings so there isn't really
a use for it in the loop class. Now this patch was triggered due to complexity in
using future/promise, so will do a follow up patch to improve that.
This commit is contained in:
parent
8a10f09b14
commit
c19ef91020
|
@ -62,7 +62,7 @@ EAPI int efl_loop_exit_code_process(Eina_Value *value);
|
|||
|
||||
#include "efl_loop_consumer.eo.h"
|
||||
|
||||
EAPI Eina_Future_Scheduler *efl_loop_future_scheduler_get(const Eo *obj);
|
||||
EAPI Eina_Future_Scheduler *efl_loop_future_scheduler_get(Eo *obj);
|
||||
|
||||
#include "efl_loop_fd.eo.h"
|
||||
#include "efl_loop_handler.eo.h"
|
||||
|
|
|
@ -714,8 +714,8 @@ _efl_loop_efl_version_get(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd EINA_UNUSED)
|
|||
return &version;
|
||||
}
|
||||
|
||||
EOLIAN static Eina_Future_Scheduler *
|
||||
_efl_loop_future_scheduler_get(Eo *obj, Efl_Loop_Data *pd EINA_UNUSED)
|
||||
EAPI Eina_Future_Scheduler *
|
||||
efl_loop_future_scheduler_get(Eo *obj)
|
||||
{
|
||||
if (!obj) return NULL;
|
||||
|
||||
|
|
|
@ -47,17 +47,6 @@ class Efl.Loop (Efl.Object)
|
|||
@cref version: Efl.Version; [[Efl version]]
|
||||
}
|
||||
}
|
||||
@property future_scheduler {
|
||||
[[The future scheduler for the current loop.
|
||||
|
||||
If no future scheduler has been created for the loop then a new one
|
||||
will be set up.
|
||||
]]
|
||||
get {}
|
||||
values {
|
||||
future_scheduler: ptr(Eina.Future.Scheduler); [[The current loop' sfuture scheduler.]]
|
||||
}
|
||||
}
|
||||
iterate {
|
||||
[[Runs a single iteration of the main loop to process everything on the
|
||||
queue.]]
|
||||
|
|
|
@ -79,5 +79,4 @@ struct @extern Eina.Rw_Slice {
|
|||
|
||||
struct @extern Eina.Value.Type; [[Eina value type]]
|
||||
struct @extern Eina.Future; [[Eina_Future handle]]
|
||||
struct @extern Eina.Future.Scheduler; [[Eina_Future_Scheduler handle]]
|
||||
struct @extern Eina.Promise; [[Eina_Promise handle]]
|
||||
|
|
Loading…
Reference in New Issue