Home
last modified time | relevance | path

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

/external/rust/crates/futures/tests/
Darc_wake.rs33 assert_eq!(2, Arc::strong_count(&some_w)); in create_from_arc()
38 assert_eq!(3, Arc::strong_count(&some_w)); in create_from_arc()
44 assert_eq!(2, Arc::strong_count(&some_w)); in create_from_arc()
46 assert_eq!(1, Arc::strong_count(&some_w)); in create_from_arc()
79 assert_eq!(2, Arc::strong_count(&some_w)); // some_w + w1 in proper_refcount_on_wake_panic()
81 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.rs214 assert_eq!(2, Rc::strong_count(&ptr)); in test_array_module()
222 assert_eq!(1, Rc::strong_count(&ptr)); in test_array_module()
/external/rust/crates/tokio/tests/
Dsync_mpsc.rs380 assert_eq!(1, Arc::strong_count(&msg)); in dropping_rx_closes_channel()
400 assert_eq!(1, Arc::strong_count(&msg)); in dropping_rx_closes_channel_for_try()
411 assert_eq!(2, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
415 assert_eq!(1, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
Dsync_broadcast.rs356 assert_eq!(2, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
360 assert_eq!(1, Arc::strong_count(&msg)); in unconsumed_messages_are_dropped()
Drt_common.rs302 assert_eq!(2, Arc::strong_count(&cnt));
307 assert_eq!(2, Arc::strong_count(&cnt));
311 assert_eq!(1, Arc::strong_count(&cnt));
Dtask_local_set.rs313 assert_eq!(1, Rc::strong_count(&rc1)); in drop_cancels_tasks()
/external/crosvm/cros_async/src/
During_executor.rs887 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_read()
892 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_read()
900 assert_eq!(Arc::strong_count(&bm), 1); in dont_drop_backing_mem_read()
927 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_write()
932 assert_eq!(Arc::strong_count(&bm), 2); in dont_drop_backing_mem_write()
941 assert_eq!(Arc::strong_count(&bm), 1); in dont_drop_backing_mem_write()
/external/rust/crates/intrusive-collections/src/
Dpointer_ops.rs299 assert_eq!(2, Arc::strong_count(&p2)); in clone_arc_from_raw()
311 assert_eq!(2, Rc::strong_count(&p2)); in clone_rc_from_raw()
Dsingly_linked_list.rs1339 assert_eq!(2, $ptr::strong_count(&a));
1343 assert_eq!(3, $ptr::strong_count(&a));
Dlinked_list.rs1650 assert_eq!(2, $ptr::strong_count(&a));
1654 assert_eq!(3, $ptr::strong_count(&a));
Dxor_linked_list.rs1892 assert_eq!(2, $ptr::strong_count(&a));
1896 assert_eq!(3, $ptr::strong_count(&a));
Drbtree.rs2827 assert_eq!(2, $ptr::strong_count(&a));
2831 assert_eq!(3, $ptr::strong_count(&a));
/external/rust/crates/futures-util/src/future/future/
Dshared.rs139 pub fn strong_count(&self) -> Option<usize> { in strong_count() function
140 self.inner.as_ref().map(|arc| Arc::strong_count(arc)) in strong_count()
/external/rust/crates/tokio/src/signal/unix/
Ddriver.rs170 if self.inner.strong_count() > 0 { in check_inner()
/external/rust/crates/smallvec/src/
Dtests.rs761 assert_eq!(Rc::strong_count(&one), 2); in test_retain()
763 assert_eq!(Rc::strong_count(&one), 1); in test_retain()
769 assert_eq!(Rc::strong_count(&one), 2); in test_retain()
771 assert_eq!(Rc::strong_count(&one), 1); in test_retain()
/external/kernel-headers/original/uapi/linux/android/
Dbinder.h261 __u32 strong_count; member
/external/rust/crates/tokio-test/src/
Dtask.rs158 Arc::strong_count(&self.waker) in waker_ref_count()
/external/rust/crates/mio/src/sys/windows/
Dselector.rs46 afd_group.retain(|g| Arc::strong_count(&g) > 1); in release_unused_afd()
60 if Arc::strong_count(afd_group.last().unwrap()) >= POLL_GROUP__MAX_GROUP_SIZE + 1 {
/external/rust/crates/parking_lot/src/
Drwlock.rs579 assert_eq!(Arc::strong_count(&b), 2); in test_clone()
/external/crosvm/gpu_display/src/
Dgpu_display_x.rs48 if Rc::strong_count(&self.0) == 1 { in drop()