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

Method check

Lib/test/test_bytes.py:2803–2816  ·  view source on GitHub ↗
(funcs, a=None, *args)

Source from the content-addressed store, hash-verified

2801 except IndexError: pass
2802
2803 def check(funcs, a=None, *args):
2804 if a is None:
2805 a = bytearray(b'0' * 0x400000)
2806
2807 barrier = threading.Barrier(len(funcs))
2808 threads = []
2809
2810 for func in funcs:
2811 thread = threading.Thread(target=func, args=(barrier, a, *args))
2812
2813 threads.append(thread)
2814
2815 with threading_helper.start_threads(threads):
2816 pass
2817
2818 # hard errors
2819

Callers

nothing calls this directly

Calls 2

BarrierMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected