MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _acquireLock

Function _acquireLock

tools/python-3.11.9-amd64/Lib/logging/__init__.py:228–235  ·  view source on GitHub ↗

Acquire the module-level lock for serializing access to shared data. This should be released with _releaseLock().

()

Source from the content-addressed store, hash-verified

226_lock = threading.RLock()
227
228def _acquireLock():
229 """
230 Acquire the module-level lock for serializing access to shared data.
231
232 This should be released with _releaseLock().
233 """
234 if _lock:
235 _lock.acquire()
236
237def _releaseLock():
238 """

Callers 11

addLevelNameFunction · 0.85
_addHandlerRefFunction · 0.85
set_nameMethod · 0.85
closeMethod · 0.85
getLoggerMethod · 0.85
_clear_cacheMethod · 0.85
addHandlerMethod · 0.85
removeHandlerMethod · 0.85
isEnabledForMethod · 0.85
basicConfigFunction · 0.85

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected