Lines Matching refs:running
16 def value_func(running, mutex): argument
22 running.value -= 1
27 running = multiprocessing.Value('i', TASKS)
31 p = multiprocessing.Process(target=value_func, args=(running, mutex))
34 while running.value > 0:
37 print running.value,
110 def semaphore_func(sema, mutex, running): argument
114 running.value += 1
115 print running.value, 'tasks are running'
122 running.value -= 1
131 running = multiprocessing.Value('i', 0)
135 args=(sema, mutex, running))