poller.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:sc-controller 作者: kozec 项目源码 文件源码
def poll(self, timeout=0.01):
        inn, out, pri = select.select( self._pool_in, self._pool_out, self._pool_pri, timeout )

        for fd in inn:
            self._callbacks.get(fd, DO_NOTHING)(fd, Poller.POLLIN)
        for fd in out:
            self._callbacks.get(fd, DO_NOTHING)(fd, Poller.POLLOUT)
        for fd in pri:
            self._callbacks.get(fd, DO_NOTHING)(fd, Poller.POLLPRI)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号