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

Function wait_threads_blocked

Lib/test/lock_tests.py:22–25  ·  view source on GitHub ↗
(nthread)

Source from the content-addressed store, hash-verified

20
21
22def wait_threads_blocked(nthread):
23 # Arbitrary sleep to wait until N threads are blocked,
24 # like waiting for a lock.
25 time.sleep(0.010 * nthread)
26
27
28class Bunch(object):

Callers 5

_check_notifyMethod · 0.85
test_set_and_clearMethod · 0.85
_check_notifyMethod · 0.85
test_default_valueMethod · 0.85

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…