我對event時間循環(huán)不怎么懂,有以下幾個問題想請教
1、像ev_read和ev_write事件是不是每次add的時候就會執(zhí)行回調?
self::$globalEvent->add($this->_mainSocket, EventInterface::EV_READ,array($this, 'acceptConnection'));
Worker::$globalEvent->add($this->_socket, EventInterface::EV_WRITE, array($this, 'baseWrite'));
2、為什么在worker的run方法和listen方法里都添加了EV_READ事件