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

Method is_alive

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

Return whether the thread is alive. This method returns True just before the run() method starts until just after the run() method terminates. See also the module function enumerate().

(self)

Source from the content-addressed store, hash-verified

1190 return self._native_id
1191
1192 def is_alive(self):
1193 """Return whether the thread is alive.
1194
1195 This method returns True just before the run() method starts until just
1196 after the run() method terminates. See also the module function
1197 enumerate().
1198
1199 """
1200 assert self._initialized, "Thread.__init__() not called"
1201 if self._is_stopped or not self._started.is_set():
1202 return False
1203 self._wait_for_tstate_lock(False)
1204 return not self._is_stopped
1205
1206 @property
1207 def daemon(self):

Callers 3

__repr__Method · 0.95
_communicateMethod · 0.45
reapMethod · 0.45

Calls 2

_wait_for_tstate_lockMethod · 0.95
is_setMethod · 0.45

Tested by

no test coverage detected