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

Method lock

tools/python-3.11.9-amd64/Lib/mailbox.py:640–644  ·  view source on GitHub ↗

Lock the mailbox.

(self)

Source from the content-addressed store, hash-verified

638 return len(self._toc)
639
640 def lock(self):
641 """Lock the mailbox."""
642 if not self._locked:
643 _lock_file(self._file)
644 self._locked = True
645
646 def unlock(self):
647 """Unlock the mailbox if it is locked."""

Callers

nothing calls this directly

Calls 1

_lock_fileFunction · 0.85

Tested by

no test coverage detected