(self, sock, py_db, terminate_on_socket_close=True)
| 364 | """writer thread writes out the commands in an infinite loop""" |
| 365 | |
| 366 | def __init__(self, sock, py_db, terminate_on_socket_close=True): |
| 367 | PyDBDaemonThread.__init__(self, py_db) |
| 368 | self.sock = sock |
| 369 | self.__terminate_on_socket_close = terminate_on_socket_close |
| 370 | self.name = "pydevd.Writer" |
| 371 | self._cmd_queue = _queue.Queue() |
| 372 | if pydevd_vm_type.get_vm_type() == "python": |
| 373 | self.timeout = 0 |
| 374 | else: |
| 375 | self.timeout = 0.1 |
| 376 | |
| 377 | def add_command(self, cmd): |
| 378 | """cmd is NetCommand""" |