Atomic operation and fetch functions