Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ acquire
Method
acquire
Lib/test/lock_tests.py:400–403 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
398
rlock = self.locktype()
399
self.assertFalse(rlock.locked())
400
def
acquire():
401
result.append(rlock.locked())
402
rlock.acquire()
403
result.append(rlock.locked())
404
405
with
Bunch(acquire, 1):
406
pass
Callers
15
test_threading
Function · 0.45
setUp
Method · 0.45
test_starting_threads
Method · 0.45
test_nt_and_posix_stack_size
Method · 0.45
test__count
Method · 0.45
task
Method · 0.45
test_unraisable_exception
Method · 0.45
test_joinable_not_joined
Method · 0.45
test_join_from_self
Method · 0.45
make_lock
Method · 0.45
self_joiner
Method · 0.45
test_join_then_self_join
Method · 0.45
Calls
2
append
Method · 0.45
locked
Method · 0.45
Tested by
no test coverage detected