Home
last modified time | relevance | path

Searched refs:arc (Results 1 – 2 of 2) sorted by relevance

/DragonOS/docs/kernel/core_api/
H A Dcasting.md59 let arc: Arc<dyn U> = ...;
60 let arc_t: Arc<T> = arc.downcast_arc::<T>().unwrap();
63 &emsp;&emsp;如果`arc`的具体类型不是`Arc<T>`,那么`downcast_arc::<T>()`会返回`None`。
/DragonOS/kernel/src/process/
H A Dkthread.rs228 let arc = Arc::from_raw(ptr); in parse_unsafe_arc_ptr() localVariable
230 arc.has_unsafe_arc_instance in parse_unsafe_arc_ptr()
235 assert!(Arc::strong_count(&arc) > 0); in parse_unsafe_arc_ptr()
236 return arc; in parse_unsafe_arc_ptr()