MCPcopy Index your code
hub / github.com/python/cpython / test_func

Function test_func

Lib/test/_test_venv_multiprocessing.py:14–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def test_func():
15 code = random.randrange(0, 1000)
16 queue = multiprocessing.Queue()
17 fill_pool = multiprocessing.Process(
18 target=fill_queue,
19 args=(queue, code)
20 )
21 drain_pool = multiprocessing.Process(
22 target=drain_queue,
23 args=(queue, code)
24 )
25 drain_pool.start()
26 fill_pool.start()
27 fill_pool.join()
28 drain_pool.join()
29
30
31def main():

Callers

nothing calls this directly

Calls 5

randrangeMethod · 0.80
QueueMethod · 0.80
ProcessMethod · 0.45
startMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…