Update Thread.cpp