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