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.
12 lines
312 B
Text
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
|