summary refs log tree commit diff
path: root/async_core
diff options
context:
space:
mode:
authorDylan Reid <dgreid@chromium.org>2020-05-05 04:13:44 +0000
committerCommit Bot <commit-bot@chromium.org>2020-05-07 22:39:10 +0000
commit0bb7fa603d6250079ac818289b5c887175ea35b3 (patch)
tree08a0bb766fff02188eebe62ef05e42f4c1f55cd4 /async_core
parent882e2cea3bdeb6341b1e38b04e93ac6ede5a493d (diff)
downloadcrosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.tar
crosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.tar.gz
crosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.tar.bz2
crosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.tar.lz
crosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.tar.xz
crosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.tar.zst
crosvm-0bb7fa603d6250079ac818289b5c887175ea35b3.zip
cros_async: Hide the details of fd_executor
The type of the executor leaked from the cros_async crate. That was fine
until the desire to add a new executor arose. Hide the fd_executor so
that a uring_executor can be substituted on newer kernels.

Change-Id: I8dd309fd47e1b4a6e16da274abbb8431c80474af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2182042
Reviewed-by: Stephen Barber <smbarber@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'async_core')
-rw-r--r--async_core/src/eventfd.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/async_core/src/eventfd.rs b/async_core/src/eventfd.rs
index 271e8a1..e0822a7 100644
--- a/async_core/src/eventfd.rs
+++ b/async_core/src/eventfd.rs
@@ -11,14 +11,14 @@ use std::task::{Context, Poll};
 
 use libc::{EWOULDBLOCK, O_NONBLOCK};
 
-use cros_async::fd_executor::{self, add_read_waker, cancel_waker, WakerToken};
+use cros_async::{self, add_read_waker, cancel_waker, WakerToken};
 use sys_util::{self, add_fd_flags};
 
 /// Errors generated while polling for events.
 #[derive(Debug)]
 pub enum Error {
     /// An error occurred attempting to register a waker with the executor.
-    AddingWaker(fd_executor::Error),
+    AddingWaker(cros_async::Error),
     /// Failure creating the event FD.
     EventFdCreate(sys_util::Error),
     /// An error occurred when reading the event FD.