| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Polysemy.Conc.Interpreter.Lock
Description
Lock interpreters, Internal
Synopsis
- interpretLockPermissive :: InterpreterFor Lock r
- interpretLockReentrantEntered :: Members [Sync (), Resource, Race, Mask, Embed IO] r => ThreadId -> InterpreterFor Lock r
- interpretLockReentrant :: Members [Resource, Race, Mask, Embed IO] r => InterpreterFor Lock r
Documentation
interpretLockPermissive :: InterpreterFor Lock r Source #
Interpret Lock by executing all actions unconditionally.
interpretLockReentrantEntered :: Members [Sync (), Resource, Race, Mask, Embed IO] r => ThreadId -> InterpreterFor Lock r Source #
Subinterpreter for interpretLockReentrant that checks whether the current thread is equal to the lock-acquiring
thread to allow reentry into the lock.