[issue27483] Expose HEAD_LOCK/HEAD_UNLOCK in pystate.c
Maciej Fijalkowski
report at bugs.python.org
Mon Jul 11 12:50:30 EDT 2016
New submission from Maciej Fijalkowski:
Hi
The use case here is for C-based statistical profilers. When running vmprof on linux/os x, you can get the current thread state from PyThreadState_GetUnchecked or a similar solution. However, on windows you need to walk all the interpreter state, for which there is an API. However that API is only ever used with locks (HEAD_LOCK/HEAD_UNLOCK), which are not exposed, which turns API mostly useless.
----------
messages: 270188
nosy: fijall, haypo
priority: normal
severity: normal
status: open
title: Expose HEAD_LOCK/HEAD_UNLOCK in pystate.c
type: enhancement
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27483>
_______________________________________
More information about the Python-bugs-list
mailing list