add mutex to NameGenerator
add mutex to NameGenerator
revert int64 to long long
Merge pull request #19 from caishanli/master

add mutex to NameGenerator