public function __construct()
{
// 創(chuàng)建一個管道,放入監(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)先隊列(最大堆)
$this->_scheduler = new \SplPriorityQueue();
$this->_scheduler->setExtractFlags(\SplPriorityQueue::EXTR_BOTH);
}
這個管道是干嘛的,是開辟一個共享內(nèi)存么?