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

Method f

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

Source from the content-addressed store, hash-verified

437 phase = []
438
439 def f():
440 lock.acquire()
441 phase.append(None)
442
443 self.wait_phase(phase, 2)
444 lock.release()
445 phase.append(None)
446
447 with threading_helper.wait_threads_exit():
448 # Thread blocked on lock.acquire()

Callers

nothing calls this directly

Calls 5

wait_phaseMethod · 0.80
acquireMethod · 0.45
appendMethod · 0.45
releaseMethod · 0.45
_is_ownedMethod · 0.45

Tested by

no test coverage detected