thin_cell/sync/mod.rs
1//! Multithreaded version of `ThinCell`
2
3mod state;
4use state::*;
5
6crate::thin_cell! {
7 /// A compact (`1-usize`), multi-threaded smart pointer combining `Arc`
8 /// and `Mutex`.
9}
10
11unsafe impl<T: ?Sized + Send + Sync> Send for ThinCell<T> {}
12unsafe impl<T: ?Sized + Send + Sync> Sync for ThinCell<T> {}