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

Function currentThread

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

Return the current Thread object, corresponding to the caller's thread of control. This function is deprecated, use current_thread() instead.

()

Source from the content-addressed store, hash-verified

1463 return _DummyThread()
1464
1465def currentThread():
1466 """Return the current Thread object, corresponding to the caller's thread of control.
1467
1468 This function is deprecated, use current_thread() instead.
1469
1470 """
1471 import warnings
1472 warnings.warn('currentThread() is deprecated, use current_thread() instead',
1473 DeprecationWarning, stacklevel=2)
1474 return current_thread()
1475
1476def active_count():
1477 """Return the number of Thread objects currently alive.

Callers

nothing calls this directly

Calls 2

current_threadFunction · 0.85
warnMethod · 0.45

Tested by

no test coverage detected