def _stop_child_threads(self, name=None):
        child_threads = self._child_thread_map.items()
        for thread_name, thread in child_threads:
            if not name or thread_name is name:
                LOG.debug('%s: Stopping child thread %s',
                          self.name, thread_name)
                thread.kill()
                self._child_thread_map.pop(thread_name, None)
Stops all threads spawn by this activity.
dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/base.py/Activity._stop_child_threads