Package0.7.0.12Concurrency
concurrent-extra
Extra concurrency primitives
- Version0.7.0.12
- CategoryConcurrency
- LicenceBSD-3-Clause
- AuthorBas van Dijk <v.dijk.bas@gmail.com> Roel van Dijk <vandijk.roel@gmail.com>
- MaintainerBas van Dijk <v.dijk.bas@gmail.com> Roel van Dijk <vandijk.roel@gmail.com>
- Homepagegithub.com/basvandijk/concurrent-extra
- Pinned byhackage concurrent-extra 0.7.0.12
- Sourcehackage.haskell.org/package/concurrent-extra-0.7.0.12
Modules
7 modules- Control.Concurrent.Broadcast9A Broadcast is a mechanism for communication between threads. Multiple
- Control.Concurrent.Event9An Event is a simple mechanism for communication between threads: one thread
- Control.Concurrent.Lock10This module provides the Lock synchronisation mechanism. It was inspired by
- Control.Concurrent.RLock11This module provides the RLock synchronisation mechanism. It was inspired
- Control.Concurrent.ReadWriteLock16Multiple-reader, single-writer locks. Used to protect shared resources which
- Control.Concurrent.ReadWriteVar8Concurrent read, sequential write variables. Comparable to an IORef with
- Control.Concurrent.STM.Lock10This module provides an STM version of Control.Concurrent.Lock. This module is intended to be imported qualified. We suggest importing it…
Description
The concurrent-extra package offers among other things the following selection of synchronisation primitives:
Broadcast: Wake multiple threads by broadcasting a value. Event: Wake multiple threads by signalling an event. Lock: Enforce exclusive access to a resource. Also known as a binary semaphore or mutex. The package additionally provides an alternative that works in the STM monad. RLock: A lock which can be acquired multiple times by the same thread. Also known as a reentrant mutex. ReadWriteLock: Multiple-reader, single-writer locks. Used to protect shared resources which may be concurrently read, but only sequentially written. ReadWriteVar: Concurrent read, sequential write variables.
Please consult the API documentation of the individual modules for more detailed information.
This package was inspired by the concurrency libraries of Java and Python.
Depends on
3 packages- base-4.20.2.0with GHC
- stm-2.5.3.1with GHC
- unbounded-delays-0.1.1.1in this set
Used by in this set · 0
Nothing in this set depends on it.