diff options
author | Jake Tesler <jake.tesler@gmail.com> | 2019-05-12 10:08:24 -0700 |
---|---|---|
committer | Antoine Pitrou <antoine@python.org> | 2019-05-12 19:08:24 +0200 |
commit | 4959c33d2555b89b494c678d99be81a65ee864b0 (patch) | |
tree | 87df7778f170864ef1efe3418ac3cb3c47051c50 /Lib/_dummy_thread.py | |
parent | 87068ed00927bdeaa2ae556e4241c16cf8a845eb (diff) | |
download | cpython-git-4959c33d2555b89b494c678d99be81a65ee864b0.tar.gz |
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.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/_dummy_thread.py b/Lib/_dummy_thread.py index a2cae54b05..0a877e1fa1 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() |