Function arc_rwlock
Source pub fn arc_rwlock<T>(data: T) -> Arc<RwLock<T>> ⓘ
Expand description
Creates a new thread-safe reference-counted read-write lock.
§Arguments
T - The data type to be wrapped.
§Returns
Arc<RwLock<T>> - A new atomic reference-counted read-write lock.