An atomic class that guarantees atomic updates to its contained value.
Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
atomic
docs
tests
.gitignore
.travis.yml
AUTHORS
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

Atomic

An atomic class that guarantees atomic updates to its contained value.

from atomic import AtomicLong
atomic = AtomicLong(0)
atomic += 1
atomic.value

Installation

To install atomic, use pip :

pip install atomic

Acknowledgement

This is heavily inspired by ruby-atomic.