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

Method f

Lib/test/test_importlib/test_locks.py:87–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 return True
86
87 def f():
88 a, b = pairs.pop()
89 ra = _acquire(a)
90 barrier.wait()
91 rb = _acquire(b)
92 results.append((ra, rb))
93 if rb:
94 b.release()
95 if ra:
96 a.release()
97 with lock_tests.Bunch(f, NTHREADS):
98 pass
99 self.assertEqual(len(results), NTHREADS)

Callers

nothing calls this directly

Calls 4

popMethod · 0.45
waitMethod · 0.45
appendMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected