basic implementation of new atomic_buffer