MCPcopy Create free account
hub / github.com/bloomberg/pystack / gil_status

Method gil_status

src/pystack/types.py:161–168  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

159
160 @property
161 def gil_status(self) -> str:
162 if self.holds_the_gil > 0:
163 return "Has the GIL"
164 if any(frame.symbol == "take_gil" for frame in self.native_frames):
165 return "Waiting for the GIL"
166 if any(frame.symbol == "drop_gil" for frame in self.native_frames):
167 return "Dropping the GIL"
168 return ""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected