Home
last modified time | relevance | path

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

/external/rust/crates/futures/tests/
Dtask_arc_wake.rs31 assert_eq!(2, Arc::strong_count(&some_w)); in create_from_arc()
36 assert_eq!(3, Arc::strong_count(&some_w)); in create_from_arc()
42 assert_eq!(2, Arc::strong_count(&some_w)); in create_from_arc()
44 assert_eq!(1, Arc::strong_count(&some_w)); in create_from_arc()
76 assert_eq!(2, Arc::strong_count(&some_w)); // some_w + w1 in proper_refcount_on_wake_panic()
78 assert_eq!(1, Arc::strong_count(&some_w)); // some_w in proper_refcount_on_wake_panic()
/external/rust/crates/tokio/src/runtime/tests/
Dloom_blocking.rs16 assert!(1 < Arc::strong_count(&v)); in blocking_shutdown()
22 assert_eq!(1, Arc::strong_count(&v)); in blocking_shutdown()
/external/rust/crates/rusqlite/src/vtab/
Darray.rs212 assert_eq!(2, Rc::strong_count(&ptr)); in test_array_module()
220 assert_eq!(1, Rc::strong_count(&ptr)); in test_array_module()
/external/rust/crates/spin/benches/
Dmutex.rs57 while Arc::strong_count(&m) > 1 { in gen_lock_unlock_read_contention()
78 while Arc::strong_count(&m) > 1 { in gen_lock_unlock_write_contention()
/external/rust/crates/intrusive-collections/src/
Dpointer_ops.rs379 assert_eq!(2, Arc::strong_count(&p2)); in clone_arc_from_raw()
391 assert_eq!(2, Rc::strong_count(&p2)); in clone_rc_from_raw()
496 assert_eq!(2, Arc::strong_count(&Pin::into_inner(p2))); in clone_pin_arc_from_raw()
508 assert_eq!(2, Rc::strong_count(&Pin::into_inner(p2))); in clone_pin_rc_from_raw()
Dsingly_linked_list.rs1557 assert_eq!(2, $ptr::strong_count(&a));
1561 assert_eq!(3, $ptr::strong_count(&a));
Dlinked_list.rs1898 assert_eq!(2, $ptr::strong_count(&a));
1902 assert_eq!(3, $ptr::strong_count(&a));
Dxor_linked_list.rs2129 assert_eq!(2, $ptr::strong_count(&a));
2133 assert_eq!(3, $ptr::strong_count(&a));
Drbtree.rs3136 assert_eq!(2, $ptr::strong_count(&a));
3140 assert_eq!(3, $ptr::strong_count(&a));
/external/crosvm/cros_async/src/sys/unix/
During_executor.rs1090 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_read()
1095 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_read()
1103 assert_eq!(Arc::strong_count(&bm), 1); in dont_drop_backing_mem_read()
1134 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_write()
1139 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_write()
1148 assert_eq!(Arc::strong_count(&bm), 1); in dont_drop_backing_mem_write()
/external/rust/crates/tokio/tests/
Dsync_mpsc.rs414 assert_eq!(1, Arc::strong_count(&msg)); in dropping_rx_closes_channel()
436 assert_eq!(1, Arc::strong_count(&msg)); in dropping_rx_closes_channel_for_try()
447 assert_eq!(2, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
451 assert_eq!(1, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
Dsync_broadcast.rs362 assert_eq!(2, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
366 assert_eq!(1, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
Drt_common.rs343 assert_eq!(2, Arc::strong_count(&cnt));
348 assert_eq!(2, Arc::strong_count(&cnt));
352 assert_eq!(1, Arc::strong_count(&cnt));
Dtask_local_set.rs356 assert_eq!(1, Rc::strong_count(&rc1)); in drop_cancels_tasks()
/external/rust/crates/tokio/src/runtime/signal/
Dmod.rs133 if self.inner.strong_count() > 0 { in check_inner()
/external/rust/crates/futures-util/src/future/future/
Dshared.rs144 pub fn strong_count(&self) -> Option<usize> { in strong_count() function
145 self.inner.as_ref().map(|arc| Arc::strong_count(arc)) in strong_count()
/external/rust/crates/smallvec/src/
Dtests.rs775 assert_eq!(Rc::strong_count(&one), 2); in test_retain()
777 assert_eq!(Rc::strong_count(&one), 1); in test_retain()
783 assert_eq!(Rc::strong_count(&one), 2); in test_retain()
785 assert_eq!(Rc::strong_count(&one), 1); in test_retain()
/external/rust/crates/tokio-test/src/
Dtask.rs158 Arc::strong_count(&self.waker) in waker_ref_count()
/external/kernel-headers/original/uapi/linux/android/
Dbinder.h261 __u32 strong_count; member
/external/rust/crates/mio/src/sys/windows/
Dselector.rs48 afd_group.retain(|g| Arc::strong_count(g) > 1); in release_unused_afd()
62 if Arc::strong_count(afd_group.last().unwrap()) > POLL_GROUP__MAX_GROUP_SIZE {
/external/rust/crates/parking_lot/src/
Drwlock.rs585 assert_eq!(Arc::strong_count(&b), 2); in test_clone()
/external/crosvm/gpu_display/src/
Dgpu_display_x.rs61 if Rc::strong_count(&self.0) == 1 { in drop()