Home
last modified time | relevance | path

Searched refs:with_mut (Results 1 – 22 of 22) sorted by relevance

/external/rust/crates/tokio/src/runtime/task/
Dcore.rs120 pub(super) fn with_mut<R>(&self, f: impl FnOnce(*mut Option<S>) -> R) -> R { in with_mut() method
121 self.scheduler.with_mut(f) in with_mut()
147 self.scheduler.with_mut(|ptr| unsafe { in bind_scheduler()
206 pub(super) fn with_mut<R>(&self, f: impl FnOnce(*mut Stage<T>) -> R) -> R { in with_mut() method
207 self.stage.with_mut(f) in with_mut()
225 self.stage.with_mut(|ptr| { in poll()
278 self.stage.with_mut(|ptr| { in take_output()
288 self.stage.with_mut(|ptr| *ptr = stage) in set_stage()
302 self.queue_next.with_mut(|ptr| *ptr = next);
309 self.waker.with_mut(|ptr| { in set_waker()
Dharness.rs94 self.trailer().waker.with_mut(drop); in dealloc()
97 self.core().stage.with_mut(drop); in dealloc()
98 self.core().scheduler.with_mut(drop); in dealloc()
Dstack.rs36 .with_mut(|ptr| *ptr = NonNull::new(curr)) in push()
Dmod.rs220 NonNull::from(target.as_ref().owned.with_mut(|ptr| &mut *ptr)) in pointers()
/external/rust/crates/tokio/src/sync/task/
Datomic_waker.rs182 self.waker.with_mut(|t| *t = Some(waker.into_waker())); in do_register()
206 let waker = self.waker.with_mut(|t| (*t).take()).unwrap(); in do_register()
261 let waker = unsafe { self.waker.with_mut(|t| (*t).take()) }; in take_waker()
/external/rust/crates/bytes/src/
Dloom.rs7 fn with_mut<F, R>(&mut self, f: F) -> R in with_mut() method
13 fn with_mut<F, R>(&mut self, f: F) -> R in with_mut() method
Dbytes.rs889 data.with_mut(|shared| { in promotable_even_drop()
916 data.with_mut(|shared| { in promotable_odd_drop()
964 data.with_mut(|shared| { in shared_drop()
Dbytes_mut.rs1511 data.with_mut(|shared| { in shared_v_drop()
/external/rust/crates/tokio/src/sync/mpsc/
Dchan.rs201 self.inner.rx_fields.with_mut(|rx_fields_ptr| { in close()
222 self.inner.rx_fields.with_mut(|rx_fields_ptr| { in recv()
274 self.inner.rx_fields.with_mut(|rx_fields_ptr| { in drop()
302 self.rx_fields.with_mut(|rx_fields_ptr| { in drop()
Dblock.rs148 self.values[slot_offset].with_mut(|ptr| { in write()
192 .with_mut(|ptr| *ptr = tail_position); in tx_release()
/external/rust/crates/tokio/src/sync/
Doneshot.rs206 self.0.with_mut(|ptr| { in drop_task()
213 self.0.with_mut(|ptr| { in set_task()
313 inner.value.with_mut(|ptr| unsafe { in send()
801 self.value.with_mut(|ptr| (*ptr).take()) in consume_value()
809 this.with_mut(|v| *v) in mut_load()
Donce_cell.rs74 .with_mut(|ptr| ptr::drop_in_place((&mut *ptr).as_mut_ptr())); in drop()
132 &mut *self.value.with_mut(|ptr| (*ptr).as_mut_ptr()) in get_unchecked_mut()
138 self.value.with_mut(|ptr| (*ptr).as_mut_ptr().write(value)); in set_value()
Dbroadcast.rs621 slot.rem.with_mut(|v| *v = rem); in send2()
628 slot.val.with_mut(|ptr| unsafe { *ptr = value }); in send2()
739 waiter.with_mut(|ptr| { in recv_ref()
1012 self.waiter.with_mut(|ptr| { in drop()
1066 self.slot.val.with_mut(|ptr| unsafe { *ptr = None }); in drop()
Dbatch_semaphore.rs192 let waker = unsafe { waiter.as_mut().waker.with_mut(|waker| (*waker).take()) }; in close()
263 *slot = unsafe { waiter.as_mut().waker.with_mut(|waker| (*waker).take()) }; in add_permits_locked()
371 node.waker.with_mut(|waker| { in poll_acquire()
/external/rust/crates/plotters/benches/benches/
Dparallel.rs77 let mut e = BitMapElement::with_mut((0, 0), (s / 2, s / 2), b).unwrap(); in draw_func_4x4()
107 BitMapElement::with_mut((0, 0), (s / 2, s / 2), b).unwrap(); in draw_func_4x4()
138 BitMapElement::with_mut((0, 0), (s, s / 2), buf).unwrap(); in draw_func_2x1()
/external/rust/crates/tokio/src/loom/std/
Dunsafe_cell.rs13 pub(crate) fn with_mut<R>(&self, f: impl FnOnce(*mut T) -> R) -> R { in with_mut() method
Datomic_usize.rs29 pub(crate) fn with_mut<R>(&mut self, f: impl FnOnce(&mut usize) -> R) -> R { in with_mut() method
/external/rust/crates/tokio/src/runtime/
Dqueue.rs144 self.inner.buffer[idx].with_mut(|ptr| { in push_back()
236 self.inner.buffer[i_idx].with_mut(|ptr| unsafe { in push_overflow()
415 .with_mut(|ptr| unsafe { ptr::write((*ptr).as_mut_ptr(), task) }); in steal_into2()
/external/rust/crates/crossbeam-epoch/src/
Dinternal.rs438 let bag = self.bag.with_mut(|b| &mut *b); in defer()
447 let bag = self.bag.with_mut(|b| unsafe { &mut *b }); in flush()
589 .push_bag(self.bag.with_mut(|b| &mut *b), guard); in finalize()
Dlib.rs134 pub(crate) fn with_mut<R>(&self, f: impl FnOnce(*mut T) -> R) -> R { in with_mut() method
/external/rust/crates/plotters/src/element/
Dimage.rs107 pub fn with_mut(pos: Coord, size: (u32, u32), buf: &'a mut [u8]) -> Option<Self> { in with_mut() method
/external/rust/crates/tokio/src/time/driver/
Dentry.rs220 unsafe { self.result.with_mut(|p| *p = result) }; in fire()