Added ThreadUtil methods [ci skip]