mvar

Python implementation of Haskell's Control.Concurrent.MVar


Keywords
concurrency-control, concurrency-utilities, python3, python3-library, synchronization
License
Apache-2.0
Install
pip install mvar==1.0.0

Documentation

pyhton-mvar

PyPI version Build Status codecov

A Pyhton port of Haskell's Control.Concurrent.MVar.

This implementation blocks on get if the MVar is empty, and on put if the MVar is not empty.

A MVar is a mutable location which can either be empty, or contain a value. The location can be written to and read from safely from multiple concurrent python threads.

Installation

pip3 install mvar

Example

A brief example with 3 threads and one MVar is available in example

Copyright 2018 Gabriele Baldoni