MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / run

Method run

tools/python-3.11.9-amd64/Lib/threading.py:971–986  ·  view source on GitHub ↗

Method representing the thread's activity. You may override this method in a subclass. The standard run() method invokes the callable object passed to the object's constructor as the target argument, if any, with sequential and keyword arguments taken from the a

(self)

Source from the content-addressed store, hash-verified

969 self._started.wait()
970
971 def run(self):
972 """Method representing the thread's activity.
973
974 You may override this method in a subclass. The standard run() method
975 invokes the callable object passed to the object's constructor as the
976 target argument, if any, with sequential and keyword arguments taken
977 from the args and kwargs arguments, respectively.
978
979 """
980 try:
981 if self._target is not None:
982 self._target(*self._args, **self._kwargs)
983 finally:
984 # Avoid a refcycle if the thread is running a function with
985 # an argument that has a member that points to the thread.
986 del self._target, self._args, self._kwargs
987
988 def _bootstrap(self):
989 # Wrapper around the real bootstrap code that ignores

Callers 1

_bootstrap_innerMethod · 0.95

Calls 1

_targetMethod · 0.80

Tested by

no test coverage detected