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

Method f

Lib/test/lock_tests.py:649–662  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

647 results2 = []
648 phase_num = 0
649 def f():
650 cond.acquire()
651 ready.append(phase_num)
652 result = cond.wait()
653
654 cond.release()
655 results1.append((result, phase_num))
656
657 cond.acquire()
658 ready.append(phase_num)
659
660 result = cond.wait()
661 cond.release()
662 results2.append((result, phase_num))
663
664 N = 5
665 with Bunch(f, N):

Callers

nothing calls this directly

Calls 9

assertTrueMethod · 0.80
assertFalseMethod · 0.80
assertTimeoutMethod · 0.80
acquireMethod · 0.45
appendMethod · 0.45
waitMethod · 0.45
releaseMethod · 0.45
wait_forMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected