A more generic version of AtomicInt64, supporting all Python numeric types, even user-defined ones.
It should be a subclass of AtomicRef and it can be implemented in pure Python.
The idea is to define all numerical magic methods and turn them into AtomicRef.compare_and_set() calls.
A more generic version of
AtomicInt64, supporting all Python numeric types, even user-defined ones.It should be a subclass of
AtomicRefand it can be implemented in pure Python.The idea is to define all numerical magic methods and turn them into
AtomicRef.compare_and_set()calls.