国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

resumeAccept 函數(shù)的邏輯看不懂

oldtwo
public function resumeAccept()
{
    // Register a listener to be notified when server socket is ready to read.
    if (static::$globalEvent && true === $this->_pauseAccept && $this->_mainSocket) {
        if ($this->transport !== 'udp') {
            static::$globalEvent->add($this->_mainSocket, EventInterface::EV_READ, array($this, 'acceptConnection'));
        } else {
            static::$globalEvent->add($this->_mainSocket, EventInterface::EV_READ, array($this, 'acceptUdpConnection'));
        }
        $this->_pauseAccept = false;
    }
}

我怎么覺得是

if (static::$globalEvent && flase === $this->_pauseAccept && $this->_mainSocket) {
 這樣才對 $this->_pauseAccept =ture 不是暫停的嗎   都暫停了 還怎么進行
1019 1 0
1個回答

nitron

pause 暫停
resume 繼續(xù)
若暫停為true,才執(zhí)行resume

  • oldtwo 2022-04-27

    都暫停了 static::$globalEvent->add($this->_mainSocket, EventInterface::EV_READ, array($this, 'acceptConnection')); 這個還起作用嗎

  • nitron 2022-04-27

    _pauseAccept只是一個狀態(tài)標(biāo)識,不是真的暫停

  • oldtwo 2022-04-27

    好的 謝謝您

年代過于久遠,無法發(fā)表回答
??