flâneur — a map of the web's best reading

Mutex in std::sync - Rust

doc.rust-lang.org · 3,017 words · saved by 1 readers

A mutual exclusion primitive useful for protecting shared data

Mutex in std::sync - Rust Skip to main content This old browser is unsupported and will most likely display funky things. Mutex std :: sync Struct Mutex Copy item path 1.0.0 · Source pub struct Mutex<T: ? Sized > { /* private fields */ } Expand description A mutual exclusion primitive useful for protecting shared data This mutex will block threads waiting for the lock to become available. The mutex can be created via a new constructor. Each mutex has a type parameter which represents the data that it is protecting. The data can only be accessed through the RAII guards returned from lock and tr

Explore this link on the map →

related reading