Sync swap added
Atomic operations as primitives