MCPcopy Create free account
hub / github.com/RustPython/RustPython / createLock

Method createLock

Lib/logging/__init__.py:958–963  ·  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

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

Callers 1

__init__Method · 0.95

Calls 2

RLockMethod · 0.80

Tested by

no test coverage detected