Forum Navigation
Two Atomic modules
Moderators:
kris
Posted: 01/26/10 12:24:06It seems there are currently two Atomic modules in Tango trunk, tango.core.sync.Atomic and tango.core.Atomic, the latter being the older one and apparently deprecated or about to become so? However, the newer sync.Atomic exports much less functionality to the world and, as far as I can tell, does not permit implementing a lock-free ring buffer with it. (It provides only LL or SS memory barriers, but no mixed or full ones.)
So why are there two modules, and is it ok to use the older, richer one for future-proof code?