[Python-checkins] python/dist/src/Include pystate.h,2.29,2.30
bcannon@users.sourceforge.net
bcannon at users.sourceforge.net
Sat Jun 25 09:07:37 CEST 2005
- Previous message: [Python-checkins] python/dist/src/Tools/bgen/bgen bgenGenerator.py, 1.17, 1.18 bgenObjectDefinition.py, 1.29, 1.30 bgenType.py, 1.15, 1.16 bgenVariable.py, 1.6, 1.7 scantools.py, 1.37, 1.38
- Next message: [Python-checkins] python/dist/src/Python ceval.c,2.422,2.423
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31041/Include
Modified Files:
pystate.h
Log Message:
Add comments about PyThreadState and the usage of its fields.
Index: pystate.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pystate.h,v
retrieving revision 2.29
retrieving revision 2.30
diff -u -d -r2.29 -r2.30
--- pystate.h 8 Jun 2004 08:17:42 -0000 2.29
+++ pystate.h 25 Jun 2005 07:07:34 -0000 2.30
@@ -53,12 +53,16 @@
#define PyTrace_C_RETURN 6
typedef struct _ts {
+ /* See Python/ceval.c for comments explaining most fields */
struct _ts *next;
PyInterpreterState *interp;
struct _frame *frame;
int recursion_depth;
+ /* 'tracing' keeps track of the execution depth when tracing/profiling.
+ This is to prevent the actual trace/profile code from being recorded in
+ the trace/profile. */
int tracing;
int use_tracing;
@@ -75,7 +79,7 @@
PyObject *exc_value;
PyObject *exc_traceback;
- PyObject *dict;
+ PyObject *dict; /* Stores per-thread state */
/* tick_counter is incremented whenever the check_interval ticker
* reaches zero. The purpose is to give a useful measure of the number
- Previous message: [Python-checkins] python/dist/src/Tools/bgen/bgen bgenGenerator.py, 1.17, 1.18 bgenObjectDefinition.py, 1.29, 1.30 bgenType.py, 1.15, 1.16 bgenVariable.py, 1.6, 1.7 scantools.py, 1.37, 1.38
- Next message: [Python-checkins] python/dist/src/Python ceval.c,2.422,2.423
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list