diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-07-10 21:08:24 +0000 |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-07-10 21:08:24 +0000 |
commit | 9eaaa609c90a4aa8a2f4e837054b20d6f8726ee8 (patch) | |
tree | be8216b77d7baf2fbfbfdbdf190325c9bb3c3c57 /Include | |
parent | 0f8c1f55865eda1cfd6cf1234e6bf5cd0a3342ab (diff) | |
download | cpython-9eaaa609c90a4aa8a2f4e837054b20d6f8726ee8.tar.gz |
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.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pystate.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |