update thread.h