def newproc(self):
global plock
self.timer_update()
self.pq, self.cq = Queue(1), Queue(1) # two queue needed
# self.pc, self.cc = Pipe()
self.p = Process(
target = standalone_headless_isolated,
args=(self.pq, self.cq, plock)
)
self.p.daemon = True
self.p.start()
self.reset_count = 0 # how many times has this instance been reset() ed
self.step_count = 0
self.timer_update()
return
# send x to the process
评论列表
文章目录