Update thread_safe