MCPcopy Create free account
hub / github.com/apache/arrow / ~OwnedRefNoGIL

Function ~OwnedRefNoGIL

python/pyarrow/src/arrow/python/common.h:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 explicit OwnedRefNoGIL(PyObject* obj) : OwnedRef(obj) {}
233
234 ~OwnedRefNoGIL() {
235 // GH-38626: destructor may be called after the Python interpreter is finalized.
236 if (Py_IsInitialized() && obj() != NULLPTR) {
237 PyAcquireGIL lock;
238 reset();
239 }
240 }
241};
242
243template <template <typename...> typename SmartPtr, typename... Ts>

Callers

nothing calls this directly

Calls 2

objFunction · 0.85
resetFunction · 0.85

Tested by

no test coverage detected