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