fix a thread prototype.