code maintian.
thread fine tune.

Signed-off-by: qijiang.guo <qijiang.guo@gmail.com>