Thread_safe_update