Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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
22
def
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
28
class
Bunch(object):
Callers
5
test_acquire_contended
Method · 0.85
_check_notify
Method · 0.85
test_set_and_clear
Method · 0.85
_check_notify
Method · 0.85
test_default_value
Method · 0.85
Calls
1
sleep
Method · 0.45
Tested by
no test coverage detected