[Python-Dev] Useful thread project for 2.5?
Phillip J. Eby
pje at telecommunity.com
Fri Mar 4 22:17:38 CET 2005
At 04:01 PM 3/4/05 -0500, Tim Peters wrote:
>Florent's DeadlockDebugger in turn builds on an external C threadframe module:
>Folding the functionality of that (or similar functionality) into the
>core would, IMO, be a valuable addition for 2.5, and would make an
>excellent intro project for an aspiring contributor interested in how
>threads work in CPython (what this module does is conceptually
>simple). It belongs in the core because it's not safe to chase the
>tstate chain without holding pystate.c's internal head_mutex lock
>(holding the GIL isn't enough -- it's normal practice to call
>PyThreadState_Delete() while not holding the GIL).
>I'd do it myself (and maybe I will anyway), but this really would make
>a good (finite; conceptually simple) project for someone who wants to
>gain Python developer experience.
What would you suggest calling it? sys._current_frames(), returning a
More information about the Python-Dev