/external/rust/crates/futures/tests/ |
D | arc_wake.rs | 33 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/ |
D | loom_blocking.rs | 16 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/ |
D | array.rs | 214 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/ |
D | sync_mpsc.rs | 380 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()
|
D | sync_broadcast.rs | 356 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()
|
D | rt_common.rs | 302 assert_eq!(2, Arc::strong_count(&cnt)); 307 assert_eq!(2, Arc::strong_count(&cnt)); 311 assert_eq!(1, Arc::strong_count(&cnt));
|
D | task_local_set.rs | 313 assert_eq!(1, Rc::strong_count(&rc1)); in drop_cancels_tasks()
|
/external/crosvm/cros_async/src/ |
D | uring_executor.rs | 887 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/ |
D | pointer_ops.rs | 299 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()
|
D | singly_linked_list.rs | 1339 assert_eq!(2, $ptr::strong_count(&a)); 1343 assert_eq!(3, $ptr::strong_count(&a));
|
D | linked_list.rs | 1650 assert_eq!(2, $ptr::strong_count(&a)); 1654 assert_eq!(3, $ptr::strong_count(&a));
|
D | xor_linked_list.rs | 1892 assert_eq!(2, $ptr::strong_count(&a)); 1896 assert_eq!(3, $ptr::strong_count(&a));
|
D | rbtree.rs | 2827 assert_eq!(2, $ptr::strong_count(&a)); 2831 assert_eq!(3, $ptr::strong_count(&a));
|
/external/rust/crates/futures-util/src/future/future/ |
D | shared.rs | 139 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/ |
D | driver.rs | 170 if self.inner.strong_count() > 0 { in check_inner()
|
/external/rust/crates/smallvec/src/ |
D | tests.rs | 761 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/ |
D | binder.h | 261 __u32 strong_count; member
|
/external/rust/crates/tokio-test/src/ |
D | task.rs | 158 Arc::strong_count(&self.waker) in waker_ref_count()
|
/external/rust/crates/mio/src/sys/windows/ |
D | selector.rs | 46 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/ |
D | rwlock.rs | 579 assert_eq!(Arc::strong_count(&b), 2); in test_clone()
|
/external/crosvm/gpu_display/src/ |
D | gpu_display_x.rs | 48 if Rc::strong_count(&self.0) == 1 { in drop()
|