From 3e336c091fc1fee320c19d01ae2316791d65da6c Mon Sep 17 00:00:00 2001 From: Skip Montanaro Date: Tue, 3 Sep 2002 20:10:45 +0000 Subject: replace thread state objects' ticker and checkinterval fields with two globals, _Py_Ticker and _Py_CheckInterval. This also implements Jeremy's shortcut in Py_AddPendingCall that zeroes out _Py_Ticker. This allows the test in the main loop to only test a single value. The gory details are at http://python.org/sf/602191 --- Python/sysmodule.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Python/sysmodule.c') diff --git a/Python/sysmodule.c b/Python/sysmodule.c index cdacce3688..9057938dde 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -352,8 +352,7 @@ and return. See the profiler chapter in the library manual." static PyObject * sys_setcheckinterval(PyObject *self, PyObject *args) { - PyThreadState *tstate = PyThreadState_Get(); - if (!PyArg_ParseTuple(args, "i:setcheckinterval", &tstate->interp->checkinterval)) + if (!PyArg_ParseTuple(args, "i:setcheckinterval", &_Py_CheckInterval)) return NULL; Py_INCREF(Py_None); return Py_None; -- cgit v1.2.1