Exemplo n.º 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()
Exemplo n.º 2
0
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()