Sometimes you need to increment some numbers, atomically, in python. AtomicLong was born out of the need for fast thread-safe counters in python. It uses CFFI to bind GCC's Atomic Builtins. Its value is a C long which can be incremented, decremented, and set atomically. It is inspired by Java's java.util.concurrent.atomic.AtomicLong.
Sometimes you need to increment some numbers, atomically, in python. AtomicLong was born out of the need for fast thread-safe counters in python. It uses CFFI to bind GCC's Atomic Builtins. Its value is a C long which can be incremented, decremented, and set atomically. It is inspired by Java's java.util.concurrent.atomic.AtomicLong.