ipc.py 文件源码

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

项目:stanford-osrl 作者: ctmakro 项目源码 文件源码
def __init__(self, f):
        ctx = mp.get_context('spawn') # eliminate problems with fork().
        pq,cq = ctx.Queue(1), ctx.Queue(1)
        self.pc, self.cc = conn_master(pq, cq), conn_slave(cq,pq)

        self.p = ctx.Process(target=f, args=(self.cc,), daemon=True)
        self.pretty('starting process')
        self.p.start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号