summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-01-03 12:13:11 -0800
committerCedric BAIL <cedric@osg.samsung.com>2018-01-03 12:16:25 -0800
commitfd0bcc201b964bd1964b165354ccb6f61687fdf5 (patch)
tree902f0322ff9de61e6b636761adaf437573318171
parent5628ecddd6247fb201aa4a79a793e71e4785e789 (diff)
downloadefl-fd0bcc201b964bd1964b165354ccb6f61687fdf5.tar.gz
eio: switch code to simpler pattern with efl_loop_promise_new.
-rw-r--r--src/lib/eio/efl_io_manager.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/lib/eio/efl_io_manager.c b/src/lib/eio/efl_io_manager.c
index d25f4c7c77..f4c56dc0ac 100644
--- a/src/lib/eio/efl_io_manager.c
+++ b/src/lib/eio/efl_io_manager.c
@@ -316,8 +316,7 @@ _efl_io_manager_ls(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);
@@ -389,8 +388,7 @@ _efl_io_manager_stat(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);
@@ -419,8 +417,7 @@ _efl_io_manager_xattr_ls(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);
@@ -471,8 +468,7 @@ _efl_io_manager_xattr_set(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);
@@ -502,8 +498,7 @@ _efl_io_manager_xattr_get(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);
@@ -541,8 +536,7 @@ _efl_io_manager_open(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);
@@ -568,8 +562,7 @@ _efl_io_manager_close(Eo *obj,
Eina_Future *future;
Eio_File *h;
- p = eina_promise_new(efl_loop_future_scheduler_get(obj),
- _efl_io_manager_future_cancel, NULL);
+ p = efl_loop_promise_new(obj, _efl_io_manager_future_cancel, NULL);
if (!p) return NULL;
future = eina_future_new(p);