Update InThread.cpp