mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Merged revisions 78393 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78393 | amaury.forgeotdarc | 2010-02-24 00:19:39 +0100 (mer., 24 févr. 2010) | 2 lines #4852: Remove dead code in every thread implementation, unused for many years. ........
This commit is contained in:
parent
640cacbffe
commit
72aee3dcab
14 changed files with 25 additions and 492 deletions
|
|
@ -825,18 +825,6 @@ Raise a KeyboardInterrupt in the main thread.\n\
|
|||
A subthread can use this function to interrupt the main thread."
|
||||
);
|
||||
|
||||
#ifndef NO_EXIT_PROG
|
||||
static PyObject *
|
||||
thread_PyThread_exit_prog(PyObject *self, PyObject *args)
|
||||
{
|
||||
int sts;
|
||||
if (!PyArg_ParseTuple(args, "i:exit_prog", &sts))
|
||||
return NULL;
|
||||
Py_Exit(sts); /* Calls PyThread_exit_prog(sts) or _PyThread_exit_prog(sts) */
|
||||
for (;;) { } /* Should not be reached */
|
||||
}
|
||||
#endif
|
||||
|
||||
static lockobject *newlockobject(void);
|
||||
|
||||
static PyObject *
|
||||
|
|
@ -970,10 +958,6 @@ static PyMethodDef thread_methods[] = {
|
|||
{"stack_size", (PyCFunction)thread_stack_size,
|
||||
METH_VARARGS,
|
||||
stack_size_doc},
|
||||
#ifndef NO_EXIT_PROG
|
||||
{"exit_prog", (PyCFunction)thread_PyThread_exit_prog,
|
||||
METH_VARARGS},
|
||||
#endif
|
||||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue