summaryrefslogtreecommitdiffstats
path: root/Include/ceval.h
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2002-09-03 20:10:45 (GMT)
committerSkip Montanaro <skip@pobox.com>2002-09-03 20:10:45 (GMT)
commitd581d7792bc31e6249ee6ed20bc2a71f53f0d3bb (patch)
tree5dc5dd8a449fabd541a8f1050d49d7a381b60140 /Include/ceval.h
parentd229b3ae048ca51d9f3865e1e9eaf83ba5a6c424 (diff)
downloadcpython-d581d7792bc31e6249ee6ed20bc2a71f53f0d3bb.zip
cpython-d581d7792bc31e6249ee6ed20bc2a71f53f0d3bb.tar.gz
cpython-d581d7792bc31e6249ee6ed20bc2a71f53f0d3bb.tar.bz2
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
Diffstat (limited to 'Include/ceval.h')
-rw-r--r--Include/ceval.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 63204b2..e1af801 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -48,6 +48,10 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
PyAPI_FUNC(char *) PyEval_GetFuncName(PyObject *);
PyAPI_FUNC(char *) PyEval_GetFuncDesc(PyObject *);
+/* this used to be handled on a per-thread basis - now just two globals */
+PyAPI_DATA(volatile int) _Py_Ticker;
+PyAPI_DATA(int) _Py_CheckInterval;
+
/* Interface for threads.
A module that plans to do a blocking system call (or something else