MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / notify_thread_not_alive

Method notify_thread_not_alive

pydevd.py:1744–1763  ·  view source on GitHub ↗

if thread is not alive, cancel trace_dispatch processing

(self, thread_id, use_lock=True)

Source from the content-addressed store, hash-verified

1742 self.writer.add_command(self.cmd_factory.make_thread_created_message(thread))
1743
1744 def notify_thread_not_alive(self, thread_id, use_lock=True):
1745 """if thread is not alive, cancel trace_dispatch processing"""
1746 if self.writer is None:
1747 return
1748
1749 with self._lock_running_thread_ids if use_lock else NULL:
1750 if not self._enable_thread_notifications:
1751 return
1752
1753 thread = self._running_thread_ids.pop(thread_id, None)
1754 if thread is None:
1755 return
1756
1757 additional_info = set_additional_thread_info(thread)
1758 was_notified = additional_info.pydev_notify_kill
1759 if not was_notified:
1760 additional_info.pydev_notify_kill = True
1761 remove_additional_info(additional_info)
1762
1763 self.writer.add_command(self.cmd_factory.make_thread_killed_message(thread_id))
1764
1765 def set_enable_thread_notifications(self, enable):
1766 with self._lock_running_thread_ids:

Callers 3

__call__Method · 0.80
__call__Method · 0.80

Calls 5

remove_additional_infoFunction · 0.90
popMethod · 0.80
add_commandMethod · 0.45

Tested by

no test coverage detected