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

Function currentThread

Lib/threading.py:1475–1484  ·  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

1473 return _DummyThread()
1474
1475def currentThread():
1476 """Return the current Thread object, corresponding to the caller's thread of control.
1477
1478 This function is deprecated, use current_thread() instead.
1479
1480 """
1481 import warnings
1482 warnings.warn('currentThread() is deprecated, use current_thread() instead',
1483 DeprecationWarning, stacklevel=2)
1484 return current_thread()
1485
1486def active_count():
1487 """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

Used in the wild real call sites across dependent graphs

searching dependent graphs…