def producer1(squeue, d1):
    '''write log'''
    mpl = MultiProcessingLog(squeue)
    msgPre = 'Producer1:Msg'
    index = 1
    while 1:
        msg = ''.join([msgPre, str(index)])
        mpl.send_debug(mpl.ERROR, msg)
        time.sleep(1)
        index += 1
        d1[index] = 'xxxxx'+str(index)
Esempio n. 2
0
def producer1(squeue, d1):
    '''write log'''
    mpl = MultiProcessingLog(squeue)
    msgPre = 'Producer1:Msg'
    index = 1
    while True:
        msg = ''.join([msgPre, str(index)])
        mpl.send_debug(mpl.ERROR, msg)
        time.sleep(1)
        index += 1
        d1[index] = 'xxxxx' + str(index)