We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6287322 commit 12a7016Copy full SHA for 12a7016
1 file changed
Include/internal/pycore_pymem.h
@@ -101,6 +101,9 @@ static inline void _PyObject_XDecRefDelayed(PyObject *obj)
101
#endif
102
103
#ifdef Py_GIL_DISABLED
104
+// This is the delayed-free equivalent of Py_XSETREF(), providing the same
105
+// atomic reference assignment semantics but with deferred cleanup suitable
106
+// for concurrent access patterns in free-threaded Python.
107
PyAPI_FUNC(void) _PyObject_XSetRefDelayed(PyObject **p_obj, PyObject *obj);
108
#else
109
static inline void _PyObject_XSetRefDelayed(PyObject **p_obj, PyObject *obj)
0 commit comments