コード例 #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))