Lines Matching refs:ThreadLocal

102 pub struct ThreadLocal<T: Send> {  struct
133 unsafe impl<T: Send> Sync for ThreadLocal<T> {} implementation
135 impl<T: Send> Default for ThreadLocal<T> { implementation
136 fn default() -> ThreadLocal<T> { in default()
137 ThreadLocal::new() in default()
141 impl<T: Send> Drop for ThreadLocal<T> { implementation
163 impl<T: Send> ThreadLocal<T> { implementation
165 pub fn new() -> ThreadLocal<T> { in new()
172 pub fn with_capacity(capacity: usize) -> ThreadLocal<T> { in with_capacity()
188 ThreadLocal { in with_capacity()
310 *self = ThreadLocal::new(); in clear()
314 impl<T: Send> IntoIterator for ThreadLocal<T> { implementation
326 impl<'a, T: Send + Sync> IntoIterator for &'a ThreadLocal<T> { implementation
335 impl<'a, T: Send> IntoIterator for &'a mut ThreadLocal<T> { implementation
344 impl<T: Send + Default> ThreadLocal<T> { impl
352 impl<T: Send + fmt::Debug> fmt::Debug for ThreadLocal<T> { implementation
358 impl<T: Send + UnwindSafe> UnwindSafe for ThreadLocal<T> {} implementation
378 fn next<'a, T: Send + Sync>(&mut self, thread_local: &'a ThreadLocal<T>) -> Option<&'a T> { in next()
400 thread_local: &'a mut ThreadLocal<T>, in next_mut()
434 fn size_hint<T: Send>(&self, thread_local: &ThreadLocal<T>) -> (usize, Option<usize>) { in size_hint()
438 fn size_hint_frozen<T: Send>(&self, thread_local: &ThreadLocal<T>) -> (usize, Option<usize>) { in size_hint_frozen()
448 thread_local: &'a ThreadLocal<T>,
465 thread_local: &'a mut ThreadLocal<T>,
495 thread_local: ThreadLocal<T>,
530 use super::ThreadLocal;
545 let mut tls = ThreadLocal::new(); in same_thread()
562 let tls = Arc::new(ThreadLocal::new()); in different_thread()
583 let tls = Arc::new(ThreadLocal::new()); in iter()
617 let local = ThreadLocal::new(); in test_drop()
635 foo::<ThreadLocal<String>>(); in is_sync()
636 foo::<ThreadLocal<RefCell<String>>>(); in is_sync()