see http://crbug.com/25641.// Instead, make our own timer and reuse it on each call toevent_base_loop().std::unique_ptr<event> timer_event(newevent);for(;;) {booldid_work = delegate->DoWork();if(!keep_running_)break;event_base_loop(event_base_, EVLOOP_NONBLOCK); ...
4理解{ libevent事件处理流程和状态的转换 5学习员使用 bufferevent缓冲0的客户端和服务端处理 6学习使用 bufferevent和zlb发送和接收的数据,在过滤器中压缩和解压缩 7学习使用libevente的http接口完成服务器GETPOST请求并支持文件下载和 图片显示; 8学习使用 libevent的htp接口客户端的GET、POST请求并完成文件下载功能...
}// Set stop to true, so the event loop will know to exit.//TODO:We should really use an atomic operation here with a release// barrier.stop_ =true;// Callevent_base_loopbreak() so that libevent will exit the next time// around the loop.event_base_loopbreak(evb_);// If termin...