Initialize the thread
(self, cf, useV2, updated_callback)
| 284 | get back values""" |
| 285 | |
| 286 | def __init__(self, cf, useV2, updated_callback): |
| 287 | """Initialize the thread""" |
| 288 | Thread.__init__(self) |
| 289 | self.setDaemon(True) |
| 290 | self.wait_lock = Lock() |
| 291 | self.cf = cf |
| 292 | self._useV2 = useV2 |
| 293 | self.updated_callback = updated_callback |
| 294 | self.request_queue = Queue() |
| 295 | self.cf.add_port_callback(CRTPPort.PARAM, self._new_packet_cb) |
| 296 | self._should_close = False |
| 297 | self._req_param = -1 |
| 298 | |
| 299 | def close(self): |
| 300 | # First empty the queue from all packets |
nothing calls this directly
no test coverage detected