code refator socket epoll ,RAII lock