(funcs, a=None, *args)
| 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 |