public function __construct()
{
// 創(chuàng)建一個(gè)管道,放入監(jiān)聽讀的描述符集合中,避免空輪詢
$this->channel = stream_socket_pair(STREAM_PF_UNIX, STREAM_SOCK_STREAM, STREAM_IPPROTO_IP);
if($this->channel)
{
stream_set_blocking($this->channel, 0);
$this->_readFds = $this->channel;
}
// 初始化優(yōu)先隊(duì)列(最大堆)
$this->_scheduler = new \SplPriorityQueue();
$this->_scheduler->setExtractFlags(\SplPriorityQueue::EXTR_BOTH);
}
這個(gè)管道是干嘛的,是開辟一個(gè)共享內(nèi)存么?