arc_rwlock

Function arc_rwlock 

Source
pub fn arc_rwlock<T>(data: T) -> ArcRwLock<T>
Expand description

Creates a new thread-safe reference-counted read-write lock.

§Arguments

  • T - The data type to be wrapped.

§Returns

  • ArcRwLock<T> - A new atomic reference-counted read-write lock.