reset thread.t