Home
last modified time | relevance | path

Searched refs:WaitContext (Results 1 – 24 of 24) sorted by relevance

/external/crosvm/base/src/
Dwait_context.rs64 pub struct WaitContext<T: EventToken>(PollContext<T>); struct
66 impl<T: EventToken> WaitContext<T> { impl
68 pub fn new() -> Result<WaitContext<T>> { in new()
69 PollContext::new().map(WaitContext) in new()
73 pub fn build_with(triggers: &[(&dyn AsRawDescriptor, T)]) -> Result<WaitContext<T>> { in build_with()
74 let ctx = WaitContext::new()?; in build_with()
147 impl<T: PollToken> AsRawDescriptor for WaitContext<T> { implementation
Dlib.rs33 pub use wait_context::{EventToken, EventType, TriggeredEvent, WaitContext};
/external/crosvm/devices/src/virtio/video/
Dworker.rs9 use base::{error, info, Event, Tube, WaitContext};
150 wait_ctx: &WaitContext<Token>, in handle_command_desc()
235 wait_ctx: &WaitContext<Token>, in handle_command_queue()
274 let wait_ctx: WaitContext<Token> = WaitContext::build_with(&[ in run()
Ddevice.rs7 use base::{PollToken, Tube, WaitContext};
103 wait_ctx: &WaitContext<Token>, in process_cmd()
/external/crosvm/devices/src/virtio/
Drng.rs10 use base::{error, warn, AsRawDescriptor, Event, PollToken, RawDescriptor, WaitContext};
76 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
Dp9.rs11 use base::{error, warn, Error as SysError, Event, PollToken, RawDescriptor, WaitContext};
119 let wait_ctx: WaitContext<Token> = in run()
120 WaitContext::build_with(&[(&queue_evt, Token::QueueReady), (&kill_evt, Token::Kill)]) in run()
Dpmem.rs10 use base::{error, AsRawDescriptor, Event, PollToken, RawDescriptor, Tube, WaitContext};
174 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
Dconsole.rs9 use base::{error, Event, PollToken, RawDescriptor, WaitContext};
239 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
Dtpm.rs13 use base::{error, Event, PollToken, RawDescriptor, WaitContext};
114 let wait_ctx = match WaitContext::build_with(&[ in run()
Dnet.rs15 use base::{error, warn, AsRawDescriptor, Event, EventType, PollToken, RawDescriptor, WaitContext};
342 let wait_ctx: WaitContext<Token> = WaitContext::build_with(&[ in run()
Dwl.rs56 Tube, TubeError, WaitContext,
873 wait_ctx: WaitContext<u32>,
897 wait_ctx: WaitContext::new().expect("failed to create WaitContext"), in new()
1514 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
Dblock.rs19 WaitContext,
397 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
/external/crosvm/devices/src/virtio/vhost/
Dworker.rs7 use base::{error, Error as SysError, Event, PollToken, Tube, WaitContext};
108 let wait_ctx: WaitContext<Token> = in run()
109 WaitContext::build_with(&[(&self.kill_evt, Token::Kill)]) in run()
/external/crosvm/devices/src/
Dbat.rs8 error, warn, AsRawDescriptor, Descriptor, Event, PollToken, RawDescriptor, Tube, WaitContext,
152 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in command_monitor()
Dpit.rs13 error, warn, AsRawDescriptor, Descriptor, Error as SysError, Event, PollToken, WaitContext,
902 let wait_ctx: WaitContext<Token> = in run()
903 WaitContext::build_with(&[(&self.fd, Token::TimerExpire), (&kill_evt, Token::Kill)]) in run()
/external/crosvm/devices/src/virtio/fs/
Dworker.rs11 use base::{error, Event, PollToken, SafeDescriptor, Tube, WaitContext};
216 WaitContext::build_with(&[(&queue_evt, Token::QueueReady), (&kill_evt, Token::Kill)]) in run()
/external/crosvm/devices/src/virtio/video/encoder/
Dmod.rs14 use base::{error, warn, Tube, WaitContext};
175 wait_ctx: &WaitContext<Token>, in set_encode_session()
212 fn clear_encode_session(&mut self, wait_ctx: &WaitContext<Token>) -> VideoResult<()> { in clear_encode_session()
599 wait_ctx: &WaitContext<Token>, in resource_create()
941 wait_ctx: &WaitContext<Token>, in set_params()
1202 wait_ctx: &WaitContext<Token>, in process_cmd()
/external/crosvm/devices/src/virtio/video/decoder/
Dmod.rs12 use base::{error, IntoRawDescriptor, Tube, WaitContext};
436 wait_ctx: &WaitContext<Token>, in create_session()
465 wait_ctx: &WaitContext<Token>, in create_resource()
815 wait_ctx: &WaitContext<Token>, in process_cmd()
/external/crosvm/devices/src/virtio/input/
Dmod.rs13 use base::{error, warn, AsRawDescriptor, Event, PollToken, RawDescriptor, WaitContext};
462 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
/external/crosvm/gpu_display/src/
Dgpu_display_x.rs32 use base::{error, AsRawDescriptor, EventType, PollToken, RawDescriptor, WaitContext};
544 wait_ctx: WaitContext<DisplayXPollToken>,
555 let wait_ctx = WaitContext::new().map_err(|_| GpuDisplayError::Allocate)?; in open_display()
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_vios.rs11 SharedMemory, WaitContext,
484 let wait_ctx: WaitContext<Token> = WaitContext::build_with(&[ in spawn_recv_thread()
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs25 RawDescriptor, Tube, WaitContext,
702 let wait_ctx: WaitContext<Token> = match WaitContext::build_with(&[ in run()
/external/crosvm/src/plugin/
Dmod.rs32 SignalFdError, WaitContext, SIGRTMIN,
719 WaitContext::build_with(&[(&exit_evt, Token::Exit), (&sigchld_fd, Token::ChildSignal)]) in run_config()
/external/crosvm/src/
Dlinux.rs2790 let wait_ctx = WaitContext::build_with(&[ in run_control()