From 9eaaa609c90a4aa8a2f4e837054b20d6f8726ee8 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 10 Jul 2006 21:08:24 +0000 Subject: After approval from Anthony, merge the tim-current_frames branch into the trunk. This adds a new sys._current_frames() function, which returns a dict mapping thread id to topmost thread stack frame. --- Include/pystate.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Include') diff --git a/Include/pystate.h b/Include/pystate.h index bfd3548fe2..cf29695963 100644 --- a/Include/pystate.h +++ b/Include/pystate.h @@ -171,6 +171,11 @@ PyAPI_FUNC(void) PyGILState_Release(PyGILState_STATE); */ PyAPI_FUNC(PyThreadState *) PyGILState_GetThisThreadState(void); +/* The implementation of sys._current_frames() Returns a dict mapping + thread id to that thread's current frame. +*/ +PyAPI_FUNC(PyObject *) _PyThread_CurrentFrames(void); + /* Routines for advanced debuggers, requested by David Beazley. Don't use unless you know what you are doing! */ PyAPI_FUNC(PyInterpreterState *) PyInterpreterState_Head(void); -- cgit v1.2.1