Searched refs:zero_refs (Results 1 – 3 of 3) sorted by relevance
/dports/lang/rust/rustc-1.58.1-src/library/alloc/src/rc/ |
H A D | tests.rs | 503 let zero_refs = Rc::new_cyclic(|inner| { in test_rc_cyclic_with_zero_refs() localVariable 509 assert_eq!(Rc::strong_count(&zero_refs), 1); in test_rc_cyclic_with_zero_refs() 510 assert_eq!(Rc::weak_count(&zero_refs), 0); in test_rc_cyclic_with_zero_refs() 511 assert_eq!(zero_refs.inner.strong_count(), 0); in test_rc_cyclic_with_zero_refs() 512 assert_eq!(zero_refs.inner.weak_count(), 0); in test_rc_cyclic_with_zero_refs()
|
/dports/lang/rust/rustc-1.58.1-src/library/alloc/src/sync/ |
H A D | tests.rs | 560 let zero_refs = Arc::new_cyclic(|inner| { in test_arc_cyclic_with_zero_refs() localVariable 566 assert_eq!(Arc::strong_count(&zero_refs), 1); in test_arc_cyclic_with_zero_refs() 567 assert_eq!(Arc::weak_count(&zero_refs), 0); in test_arc_cyclic_with_zero_refs() 568 assert_eq!(zero_refs.inner.strong_count(), 0); in test_arc_cyclic_with_zero_refs() 569 assert_eq!(zero_refs.inner.weak_count(), 0); in test_arc_cyclic_with_zero_refs()
|
/dports/lang/spidermonkey60/firefox-60.9.0/servo/components/net/ |
H A D | filemanager_thread.rs | 539 let zero_refs = entry.refs.load(Ordering::Acquire) == 0; in set_blob_url_validity() localVariable 542 (zero_refs, Some(parent_id.clone()), Ok(())) in set_blob_url_validity() 544 (zero_refs, None, Ok(())) in set_blob_url_validity()
|