generic<T: Send + Sync> struct RwLock { }Like Mutex<T>, with many readers at once (const access) or one writer. Readers share the value, so T must be Sync as well as Send.
Methods
shared: get() is const
exclusive
generic<T: Send + Sync> struct RwLock { }Like Mutex<T>, with many readers at once (const access) or one writer. Readers share the value, so T must be Sync as well as Send.
shared: get() is const
exclusive