cpplint code
add lock