Lines Matching refs:SpinLock
27 pub struct SpinLock<T: ?Sized> { struct
32 impl<T> SpinLock<T> { argument
34 pub fn new(value: T) -> SpinLock<T> { in new()
35 SpinLock { in new()
50 impl<T: ?Sized> SpinLock<T> { impl
90 unsafe impl<T: ?Sized + Send> Send for SpinLock<T> {} implementation
91 unsafe impl<T: ?Sized + Send> Sync for SpinLock<T> {} implementation
93 impl<T: ?Sized + Default> Default for SpinLock<T> { implementation
99 impl<T> From<T> for SpinLock<T> { implementation
109 lock: &'a SpinLock<T>,
146 let sl = SpinLock::new(NonCopy(13)); in it_works()
153 let sl = SpinLock::new(NonCopy(7)); in smoke()
161 let sl = SpinLock::new(NonCopy(19)); in send()
178 let sl = Arc::new(SpinLock::new(0usize)); in high_contention()
197 let mut sl = SpinLock::new(NonCopy(13)); in get_mut()
205 let sl = SpinLock::new(NonCopy(29)); in into_inner()
219 let needs_drop = SpinLock::new(NeedsDrop(value.clone())); in into_inner_drop()
233 let sl = SpinLock::new(1); in arc_nested()
234 let arc = Arc::new(SpinLock::new(sl)); in arc_nested()
246 let arc = Arc::new(SpinLock::new(1)); in arc_access_in_unwind()
250 i: Arc<SpinLock<i32>>, in arc_access_in_unwind()
268 let sltex: &SpinLock<[i32]> = &SpinLock::new([1, 2, 3]); in unsized_value()