MCPcopy Index your code
hub / github.com/python/cpython / createLock

Method createLock

Lib/logging/__init__.py:961–966  ·  view source on GitHub ↗

Acquire a thread lock for serializing access to the underlying I/O.

(self)

Source from the content-addressed store, hash-verified

959 name = property(get_name, set_name)
960
961 def createLock(self):
962 """
963 Acquire a thread lock for serializing access to the underlying I/O.
964 """
965 self.lock = threading.RLock()
966 _register_at_fork_reinit_lock(self)
967
968 def _at_fork_reinit(self):
969 self.lock._at_fork_reinit()

Callers 1

__init__Method · 0.95

Calls 2

RLockMethod · 0.80

Tested by

no test coverage detected