Mutex

Ownership-based mutual exclusion

Infrastructure · Primitives · bootstrap 0.11.0

Mechanism

An ownership-bearing Lock for a shared Resource. An Actor that successfully acquires it becomes the sole owner and may enter the protected section. Only the owner may release it; another contender becomes owner only through a later successful acquisition after release.

Invariants

Preconditions

Postconditions

Failure modes

Caution

Exclusive access — starvation enables denial of service.

Where this came from

—

Builds on

Identity