Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _acquire_restore
Method
_acquire_restore
Lib/threading.py:318–319 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
316
self._lock.release()
# No state to save
317
318
def
_acquire_restore(self, x):
319
self._lock.acquire()
# Ignore saved state
320
321
def
_is_owned(self):
322
# Return True if lock is owned by current_thread.
Callers
1
wait
Method · 0.95
Calls
1
acquire
Method · 0.45
Tested by
no test coverage detected