Update thread.cc