国产+高潮+在线,国产 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;
    }
}

我怎么覺(jué)得是

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

nitron

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

  • oldtwo 2022-04-27

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

  • nitron 2022-04-27

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

  • oldtwo 2022-04-27

    好的 謝謝您

年代過(guò)于久遠(yuǎn),無(wú)法發(fā)表回答
??