start monitor, it will start a monitor thread.
(self)
| 232 | self.running_lock.release() |
| 233 | |
| 234 | def start(self): |
| 235 | """ |
| 236 | start monitor, |
| 237 | it will start a monitor thread. |
| 238 | """ |
| 239 | self.running_lock.acquire() |
| 240 | self.running = True |
| 241 | self.running_lock.release() |
| 242 | self.fetch_thread.setDaemon(True) |
| 243 | self.fetch_thread.start() |
| 244 | |
| 245 | def stop(self): |
| 246 | self.running_lock.acquire() |