| 7 | |
| 8 | |
| 9 | class BBOTThread(threading.Thread): |
| 10 | default_name = "default bbot thread" |
| 11 | |
| 12 | def __init__(self, *args, **kwargs): |
| 13 | self.custom_name = kwargs.pop("custom_name", self.default_name) |
| 14 | if "daemon" not in kwargs: |
| 15 | kwargs["daemon"] = True |
| 16 | super().__init__(*args, **kwargs) |
| 17 | |
| 18 | def run(self): |
| 19 | from setproctitle import setthreadtitle |
| 20 | |
| 21 | setthreadtitle(str(self.custom_name)) |
| 22 | super().run() |
| 23 | |
| 24 | |
| 25 | class BBOTProcess(SpawnProcess): |
no outgoing calls
no test coverage detected
searching dependent graphs…