thread-safe integrate