Revert "bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)" (GH-13458)

This reverts commit 4959c33d25.
This commit is contained in:
Victor Stinner 2019-05-21 12:44:57 +02:00 committed by GitHub
parent 925af1d99b
commit d12e75734d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 2 additions and 133 deletions

View file

@ -143,8 +143,6 @@ LeaveNonRecursiveMutex(PNRMUTEX mutex)
unsigned long PyThread_get_thread_ident(void);
unsigned long PyThread_get_thread_native_id(void);
/*
* Initialization of the C package, should not be needed.
*/
@ -229,20 +227,6 @@ PyThread_get_thread_ident(void)
return GetCurrentThreadId();
}
/*
* Return the native Thread ID (TID) of the calling thread.
* The native ID of a thread is valid and guaranteed to be unique system-wide
* from the time the thread is created until the thread has been terminated.
*/
unsigned long
PyThread_get_thread_native_id(void)
{
if (!initialized)
PyThread_init_thread();
return GetCurrentThreadId();
}
void _Py_NO_RETURN
PyThread_exit_thread(void)
{