Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ make_lock
Method
make_lock
Lib/test/test_thread.py:251–254 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
249
# - t0 joins t1
250
# - t1 self joins
251
def
make_lock():
252
lock = thread.allocate_lock()
253
lock.acquire()
254
return
lock
255
256
error = None
257
self_joiner_handle = None
Callers
nothing calls this directly
Calls
1
acquire
Method · 0.45
Tested by
no test coverage detected