spool.py 文件源码

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

项目:ave 作者: sonyxperiadev 项目源码 文件源码
def register(self, fd):
        '''
        Register a file decriptor with the spool.
        '''
        if not self.fds:
            self.fds = select.poll()
        mask = (
            select.POLLERR | select.POLLHUP | select.POLLNVAL | select.POLLIN |
            select.POLLPRI
        )
        self.fds.register(fd, mask)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号