示例#1
0
def prFrameLogic(mypipe):
    shutdown = False
    fl = FrameLogic()
    while not shutdown:
        if not fl.doWork():
            time.sleep(1)
        if mypipe.poll():
            shutdown = mypipe.recv()
示例#2
0
文件: core2.py 项目: sridwan/meong
def prFrameLogic():
    global core2log
    shutdown = False
    fl = FrameLogic()
    while not shutdown:
        try:
            if not fl.doWork():
                time.sleep(1)
        except:
            errorstr = traceback.format_exc()
            print errorstr
            core2log.error('<FrameLogic>\n{0}'.format(errorstr))
            raw_input()