Atomic operations implementation