Refine some codes in ThreadExecutorPool.

Signed-off-by: 核心力量 <kernelforce@gmail.com>