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

Method parent

Lib/test/test_free_threading/test_monitoring.py:360–366  ·  view source on GitHub ↗
(barrier, ident)

Source from the content-addressed store, hash-verified

358 return ident
359
360 def parent(barrier, ident):
361 barrier.wait()
362 with observer():
363 t = Thread(target=child, args=(ident,))
364 t.start()
365 t.join()
366 in_parent(ident)
367
368 num_threads = 5
369 barrier = Barrier(num_threads)

Callers 1

Calls 4

startMethod · 0.95
joinMethod · 0.95
ThreadClass · 0.90
waitMethod · 0.45

Tested by

no test coverage detected