commit | 4959c33d2555b89b494c678d99be81a65ee864b0 | [log] [tgz] |
---|---|---|
author | Jake Tesler <jake.tesler@gmail.com> | Sun May 12 10:08:24 2019 -0700 |
committer | Antoine Pitrou <antoine@python.org> | Sun May 12 19:08:24 2019 +0200 |
tree | 87df7778f170864ef1efe3418ac3cb3c47051c50 | |
parent | 87068ed00927bdeaa2ae556e4241c16cf8a845eb [diff] [blame] |
bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)
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 @@ """ 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()