add lock guard
add lock guard
delete thread