Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ locked
Method
locked
Lib/test/test_contextlib.py:483–484 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
481
def
testWithCondition(self):
482
lock = threading.Condition()
483
def
locked():
484
return
lock._is_owned()
485
self.boilerPlate(lock, locked)
486
487
def
testWithSemaphore(self):
Callers
15
_test_lock_locked_2processes
Method · 0.45
test_rlock
Method · 0.45
test_rlock_locked_2processes
Method · 0.45
_test_lock
Method · 0.45
_test_rlock
Method · 0.45
test_state_after_timeout
Method · 0.45
test_locked
Method · 0.45
test_locked_with_2threads
Method · 0.45
acquire
Method · 0.45
test_lock_by_with_statement
Method · 0.45
test_wait
Method · 0.45
test_wait_cancel
Method · 0.45
Calls
3
_is_owned
Method · 0.45
acquire
Method · 0.45
release
Method · 0.45
Tested by
no test coverage detected