pub type Mutex<T> = Mutex<T>;
Available on crate feature
mutex
only.Expand description
A primitive that synchronizes the execution of multiple threads. See mutex::Mutex
for documentation.
A note for advanced users: this alias exists to avoid subtle type inference errors due to the default relax strategy type parameter. If you need a non-default relax strategy, use the fully-qualified path.
Aliased Type§
struct Mutex<T> { /* private fields */ }
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.