Searched refs:time_source (Results 1 – 9 of 9) sorted by relevance
/external/rust/crates/tokio/src/time/driver/tests/ |
D | mod.rs | 45 let time_source = super::ClockTime::new(clock.clone()); in single_timer() localVariable 47 let inner = super::Inner::new(time_source.clone(), MockUnpark::mock()); in single_timer() 66 handle.process_at_time(time_source.now() + 2_000_000_000); in single_timer() 76 let time_source = super::ClockTime::new(clock.clone()); in drop_timer() localVariable 78 let inner = super::Inner::new(time_source.clone(), MockUnpark::mock()); in drop_timer() 97 handle.process_at_time(time_source.now() + 2_000_000_000); in drop_timer() 107 let time_source = super::ClockTime::new(clock.clone()); in change_waker() localVariable 109 let inner = super::Inner::new(time_source.clone(), MockUnpark::mock()); in change_waker() 130 handle.process_at_time(time_source.now() + 2_000_000_000); in change_waker() 142 let time_source = super::ClockTime::new(clock.clone()); in reset_future() localVariable [all …]
|
/external/rust/crates/tokio/src/time/driver/ |
D | handle.rs | 8 time_source: ClockTime, field 15 let time_source = inner.state.lock().time_source.clone(); in new() localVariable 16 Handle { time_source, inner } in new() 20 pub(super) fn time_source(&self) -> &ClockTime { in time_source() method 21 &self.time_source in time_source()
|
D | mod.rs | 87 time_source: ClockTime, field 147 time_source: ClockTime, field 173 let time_source = ClockTime::new(clock); in new() localVariable 175 let inner = Inner::new(time_source.clone(), Box::new(park.unpark())); in new() 178 time_source, in new() 195 let clock = &self.time_source.clock; in park_internal() 209 let now = self.time_source.now(); in park_internal() 213 let mut duration = self.time_source.tick_to_duration(when.saturating_sub(now)); in park_internal() 256 let now = self.time_source().now(); in process() 432 pub(self) fn new(time_source: ClockTime, unpark: Box<dyn Unpark>) -> Self { in new() [all …]
|
D | entry.rs | 531 let tick = self.driver.time_source().deadline_to_tick(new_time); in reset()
|
/external/libchrome/base/task/sequence_manager/ |
D | thread_controller_impl.cc | 22 const TickClock* time_source) in ThreadControllerImpl() argument 27 time_source_(time_source), in ThreadControllerImpl() 49 const TickClock* time_source) { in Create() argument 51 message_loop, message_loop->task_runner(), time_source)); in Create()
|
D | thread_controller_impl.h | 34 const TickClock* time_source); 56 const TickClock* time_source);
|
D | thread_controller_with_message_pump_impl.cc | 17 TickClock* time_source) in ThreadControllerWithMessagePumpImpl() argument 20 time_source_(time_source) { in ThreadControllerWithMessagePumpImpl()
|
D | thread_controller_with_message_pump_impl.h | 27 explicit ThreadControllerWithMessagePumpImpl(TickClock* time_source);
|
/external/libchrome/base/task/sequence_manager/test/ |
D | sequence_manager_for_test.cc | 18 const TickClock* time_source) in ThreadControllerForTest() argument 21 time_source) {} in ThreadControllerForTest()
|