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

Method get_lock

pager_lib/tqdm/std.py:761–765  ·  view source on GitHub ↗

Get the global lock. Construct it if it does not exist.

(cls)

Source from the content-addressed store, hash-verified

759
760 @classmethod
761 def get_lock(cls):
762 """Get the global lock. Construct it if it does not exist."""
763 if not hasattr(cls, '_lock'):
764 cls._lock = TqdmDefaultWriteLock()
765 return cls._lock
766
767 @classmethod
768 def pandas(cls, **tqdm_kwargs):

Callers 6

__new__Method · 0.80
external_write_modeMethod · 0.80
closeMethod · 0.80
closeMethod · 0.80
runMethod · 0.80
ensure_lockFunction · 0.80

Calls 1

Tested by

no test coverage detected