We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af1233b commit 7bdfd34Copy full SHA for 7bdfd34
Modules/_threadmodule.c
@@ -2029,13 +2029,6 @@ An obsolete synonym of allocate_lock().");
2029
static PyObject *
2030
thread_get_ident(PyObject *self, PyObject *Py_UNUSED(ignored))
2031
{
2032
- /* Work around an issue with the main thread ID to failing comparison checks
2033
- due to sign extension on some Linux libc implemenations. Can be removed
2034
- when thread identifiers are reworked. */
2035
-#if SIZEOF_LONG < SIZEOF_LONG_LONG && defined(__linux__) && !defined(__GLIBC__)
2036
- if (_Py_IsMainThread())
2037
- return PyLong_FromUnsignedLong(_PyRuntime.main_thread);
2038
-#endif
2039
PyThread_ident_t ident = PyThread_get_thread_ident_ex();
2040
if (ident == PYTHREAD_INVALID_THREAD_ID) {
2041
PyErr_SetString(ThreadError, "no current thread ident");
0 commit comments