solve the hiddde crisis of multi-thread caused by static variable in so...

...me functions