/external/rust/crates/futures/tests/ |
D | task_arc_wake.rs | 31 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/ |
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 | 212 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/ |
D | mutex.rs | 57 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/ |
D | pointer_ops.rs | 379 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()
|
D | singly_linked_list.rs | 1557 assert_eq!(2, $ptr::strong_count(&a)); 1561 assert_eq!(3, $ptr::strong_count(&a));
|
D | linked_list.rs | 1898 assert_eq!(2, $ptr::strong_count(&a)); 1902 assert_eq!(3, $ptr::strong_count(&a));
|
D | xor_linked_list.rs | 2129 assert_eq!(2, $ptr::strong_count(&a)); 2133 assert_eq!(3, $ptr::strong_count(&a));
|
D | rbtree.rs | 3136 assert_eq!(2, $ptr::strong_count(&a)); 3140 assert_eq!(3, $ptr::strong_count(&a));
|
/external/crosvm/cros_async/src/sys/unix/ |
D | uring_executor.rs | 1090 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/ |
D | sync_mpsc.rs | 414 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()
|
D | sync_broadcast.rs | 362 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()
|
D | rt_common.rs | 343 assert_eq!(2, Arc::strong_count(&cnt)); 348 assert_eq!(2, Arc::strong_count(&cnt)); 352 assert_eq!(1, Arc::strong_count(&cnt));
|
D | task_local_set.rs | 356 assert_eq!(1, Rc::strong_count(&rc1)); in drop_cancels_tasks()
|
/external/rust/crates/tokio/src/runtime/signal/ |
D | mod.rs | 133 if self.inner.strong_count() > 0 { in check_inner()
|
/external/rust/crates/futures-util/src/future/future/ |
D | shared.rs | 144 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/ |
D | tests.rs | 775 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/ |
D | task.rs | 158 Arc::strong_count(&self.waker) in waker_ref_count()
|
/external/kernel-headers/original/uapi/linux/android/ |
D | binder.h | 261 __u32 strong_count; member
|
/external/rust/crates/mio/src/sys/windows/ |
D | selector.rs | 48 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/ |
D | rwlock.rs | 585 assert_eq!(Arc::strong_count(&b), 2); in test_clone()
|
/external/crosvm/gpu_display/src/ |
D | gpu_display_x.rs | 61 if Rc::strong_count(&self.0) == 1 { in drop()
|