MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / create_mp_lock

Method create_mp_lock

pager_lib/tqdm/std.py:117–123  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

115
116 @classmethod
117 def create_mp_lock(cls):
118 if not hasattr(cls, 'mp_lock'):
119 try:
120 from multiprocessing import RLock
121 cls.mp_lock = RLock()
122 except (ImportError, OSError): # pragma: no cover
123 cls.mp_lock = None
124
125 @classmethod
126 def create_th_lock(cls):

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected