(cls)
| 734 | |
| 735 | @classmethod |
| 736 | def _stop_thread(cls) -> None: |
| 737 | # Used before forking so the thread isn't running at fork |
| 738 | for inst in cls._instances: |
| 739 | if inst.save_thread is not None: |
| 740 | inst.save_thread.stop() |
| 741 | inst.save_thread = None |
| 742 | |
| 743 | def _restart_thread_if_stopped(self) -> None: |
| 744 | # Start the thread again after it was stopped for forking |