dpdani / cereggii

Thread synchronization utilities for Python
Apache License 2.0
9 stars 0 forks source link

Add `iter(AtomicDict)` #25

Open dpdani opened 4 months ago

dpdani commented 4 months ago

Currently only AtomicDict.fast_iter is available (also see examples/atomic_dict/partitioned_iter.py), but it is not sequentially consistent in spite of concurrent mutations: one key may be repeated, some updates may be seen out-of-order, etc.

It is possible to implement a sequentially consistent iterator with the synchronous ops functionality.