summaryrefslogtreecommitdiffstats
path: root/Lib/_dummy_thread.py
diff options
context:
space:
mode:
authorJake Tesler <jake.tesler@gmail.com>2019-05-12 17:08:24 (GMT)
committerAntoine Pitrou <antoine@python.org>2019-05-12 17:08:24 (GMT)
commit4959c33d2555b89b494c678d99be81a65ee864b0 (patch)
tree87df7778f170864ef1efe3418ac3cb3c47051c50 /Lib/_dummy_thread.py
parent87068ed00927bdeaa2ae556e4241c16cf8a845eb (diff)
downloadcpython-4959c33d2555b89b494c678d99be81a65ee864b0.zip
cpython-4959c33d2555b89b494c678d99be81a65ee864b0.tar.gz
cpython-4959c33d2555b89b494c678d99be81a65ee864b0.tar.bz2
bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)
Diffstat (limited to 'Lib/_dummy_thread.py')
-rw-r--r--Lib/_dummy_thread.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/_dummy_thread.py b/Lib/_dummy_thread.py
index a2cae54..0a877e1 100644
--- a/Lib/_dummy_thread.py
+++ b/Lib/_dummy_thread.py
@@ -71,6 +71,10 @@ def get_ident():
"""
return 1
+def get_native_id():
+ """Dummy implementation of _thread.get_native_id()."""
+ return 0
+
def allocate_lock():
"""Dummy implementation of _thread.allocate_lock()."""
return LockType()