Update thread.h

修改线程封装