(self,
# localize module access to prevent shutdown errors
_wait=_winapi.WaitForSingleObject,
_signal=_overlapped.SetEvent)
| 40 | _thread.start_new_thread(self._update_load, (), {}) |
| 41 | |
| 42 | def _update_load(self, |
| 43 | # localize module access to prevent shutdown errors |
| 44 | _wait=_winapi.WaitForSingleObject, |
| 45 | _signal=_overlapped.SetEvent): |
| 46 | # run until signaled to stop |
| 47 | while _wait(self._running, 1000): |
| 48 | self._calculate_load() |
| 49 | # notify stopped |
| 50 | _signal(self._stopped) |
| 51 | |
| 52 | def _calculate_load(self, |
| 53 | # localize module access to prevent shutdown errors |
nothing calls this directly
no test coverage detected