Skip to content

Commit 12a7016

Browse files
committed
Add comment
1 parent 6287322 commit 12a7016

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Include/internal/pycore_pymem.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ static inline void _PyObject_XDecRefDelayed(PyObject *obj)
101101
#endif
102102

103103
#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.
104107
PyAPI_FUNC(void) _PyObject_XSetRefDelayed(PyObject **p_obj, PyObject *obj);
105108
#else
106109
static inline void _PyObject_XSetRefDelayed(PyObject **p_obj, PyObject *obj)

0 commit comments

Comments
 (0)