示例#1
0
def end():
    print prunner.get_dict()['sum']
示例#2
0
def sum_up(n):
    with prunner.global_lock():
        prunner.get_dict()['sum'] += n
示例#3
0
def begin():
    prunner.get_dict()['sum'] = 0
    prunner.post_task(init, range(2000))
示例#4
0
def end():
    print prunner.get_dict()['sum']
示例#5
0
def sum_up(n):
    with prunner.global_lock():
        prunner.get_dict()['sum'] += n
示例#6
0
def begin():
    prunner.get_dict()['sum'] = 0
    prunner.post_task(init, range(2000))