mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
GH-96177: Move GIL and eval breaker code out of ceval.c into ceval_gil.c. (GH-96204)
This commit is contained in:
parent
4de06e3cc0
commit
a4a9f2e879
12 changed files with 1005 additions and 985 deletions
|
@ -1752,7 +1752,7 @@ class Frame(object):
|
|||
|
||||
def is_waiting_for_gil(self):
|
||||
'''Is this frame waiting on the GIL?'''
|
||||
# This assumes the _POSIX_THREADS version of Python/ceval_gil.h:
|
||||
# This assumes the _POSIX_THREADS version of Python/ceval_gil.c:
|
||||
name = self._gdbframe.name()
|
||||
if name:
|
||||
return (name == 'take_gil')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue