lean4-htt/src/Std/Sync.lean
Henrik Böving 626075ca34
feat: add Std.SharedMutex (#7770)
This PR adds a shared mutex (or read-write lock) as `Std.SharedMutex`.

In order to easily migrate a `Std.Mutex` to `Std.SharedMutex` if
necessary, the functions for obtaining exclusive access are named the
same, allowing a correct drop in to be done by just swapping types.
2025-04-03 08:30:54 +00:00

12 lines
312 B
Text

/-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving
-/
prelude
import Std.Sync.Basic
import Std.Sync.Channel
import Std.Sync.Mutex
import Std.Sync.RecursiveMutex
import Std.Sync.Barrier
import Std.Sync.SharedMutex