MCPcopy Index your code
hub / github.com/python/cpython / is_waiting_for_gil

Method is_waiting_for_gil

Tools/gdb/libpython.py:1844–1849  ·  view source on GitHub ↗

Is this frame waiting on the GIL?

(self)

Source from the content-addressed store, hash-verified

1842 return False
1843
1844 def is_waiting_for_gil(self):
1845 '''Is this frame waiting on the GIL?'''
1846 # This assumes the _POSIX_THREADS version of Python/ceval_gil.c:
1847 name = self._gdbframe.name()
1848 if name:
1849 return (name == 'take_gil')
1850
1851 def is_gc_collect(self):
1852 '''Is this frame a collector within the garbage-collector?'''

Callers 1

is_other_python_frameMethod · 0.95

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected