| 475 | __slots__ = AbstractSingleNotificationBehavior.__slots__ + ["multi_threads_single_notification", "_callbacks", "_callbacks_lock"] |
| 476 | |
| 477 | def __init__(self, py_db): |
| 478 | AbstractSingleNotificationBehavior.__init__(self, py_db) |
| 479 | # If True, pydevd will send a single notification when all threads are suspended/resumed. |
| 480 | self.multi_threads_single_notification = False |
| 481 | self._callbacks_lock = threading.Lock() |
| 482 | self._callbacks = [] |
| 483 | |
| 484 | def add_on_resumed_callback(self, callback): |
| 485 | with self._callbacks_lock: |