MCPcopy Index your code
hub / github.com/python/cpython / _update_load

Method _update_load

Lib/test/libregrtest/win_utils.py:42–50  ·  view source on GitHub ↗
(self,
                    # localize module access to prevent shutdown errors
                     _wait=_winapi.WaitForSingleObject,
                     _signal=_overlapped.SetEvent)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

_calculate_loadMethod · 0.95
_waitFunction · 0.50

Tested by

no test coverage detected