MCPcopy Create free account
hub / github.com/PacktPublishing/Rust-Standard-Library-Cookbook / NaiveMutex

Class NaiveMutex

Chapter07/src/bin/atomic.rs:102–107  ·  view source on GitHub ↗

NaiveMutex is an easy, albeit very suboptimal, implementation of a Mutex ("Mutual Exclusion"), similar to std::sync::Mutex A mutex is a lock that only allows one thread to access a ressource at all times

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected