diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-05-21 10:44:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-21 10:44:57 (GMT) |
commit | d12e75734d46ecde588c5de65e6d64146911d20c (patch) | |
tree | f2faae7d94731b96d70d2a5cb703b3744faffa0c /Modules/_threadmodule.c | |
parent | 925af1d99b69bf3e229411022ad840c5a0cfdcf8 (diff) | |
download | cpython-d12e75734d46ecde588c5de65e6d64146911d20c.zip cpython-d12e75734d46ecde588c5de65e6d64146911d20c.tar.gz cpython-d12e75734d46ecde588c5de65e6d64146911d20c.tar.bz2 |
Revert "bpo-36084: Add native thread ID to threading.Thread objects (GH-11993)" (GH-13458)
This reverts commit 4959c33d2555b89b494c678d99be81a65ee864b0.
Diffstat (limited to 'Modules/_threadmodule.c')
-rw-r--r-- | Modules/_threadmodule.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Modules/_threadmodule.c b/Modules/_threadmodule.c index a123cd0..3c02d8d 100644 --- a/Modules/_threadmodule.c +++ b/Modules/_threadmodule.c @@ -1160,20 +1160,6 @@ be relied upon, and the number should be seen purely as a magic cookie.\n\ A thread's identity may be reused for another thread after it exits."); static PyObject * -thread_get_native_id(PyObject *self, PyObject *Py_UNUSED(ignored)) -{ - unsigned long native_id = PyThread_get_thread_native_id(); - return PyLong_FromUnsignedLong(native_id); -} - -PyDoc_STRVAR(get_native_id_doc, -"get_native_id() -> integer\n\ -\n\ -Return a non-negative integer identifying the thread as reported\n\ -by the OS (kernel). This may be used to uniquely identify a\n\ -particular thread within a system."); - -static PyObject * thread__count(PyObject *self, PyObject *Py_UNUSED(ignored)) { PyInterpreterState *interp = _PyInterpreterState_Get(); @@ -1324,8 +1310,6 @@ static PyMethodDef thread_methods[] = { METH_NOARGS, interrupt_doc}, {"get_ident", thread_get_ident, METH_NOARGS, get_ident_doc}, - {"get_native_id", thread_get_native_id, - METH_NOARGS, get_native_id_doc}, {"_count", thread__count, METH_NOARGS, _count_doc}, {"stack_size", (PyCFunction)thread_stack_size, |