Document atomic_function