Home
last modified time | relevance | path

Searched refs:PyWeakReference (Results 1 – 16 of 16) sorted by relevance

/external/python/cpython3/Objects/
Dweakrefobject.c38 ((PyWeakReference **) _PyObject_GET_WEAKREFS_LISTPTR(o))
50 PyWeakReference *head = *GET_WEAKREFS_LISTPTR(obj); in _PyWeakref_GetWeakrefCount()
62 init_weakref(PyWeakReference *self, PyObject *ob, PyObject *callback) in init_weakref()
79 clear_weakref_lock_held(PyWeakReference *self, PyObject **callback) in clear_weakref_lock_held()
82 PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); in clear_weakref_lock_held()
107 clear_weakref(PyWeakReference *self) in clear_weakref()
131 _PyWeakref_ClearRef(PyWeakReference *self) in _PyWeakref_ClearRef()
142 clear_weakref((PyWeakReference *) self); in weakref_dealloc()
148 gc_traverse(PyWeakReference *self, visitproc visit, void *arg) in gc_traverse()
156 gc_clear(PyWeakReference *self) in gc_clear()
[all …]
/external/python/cpython3/Include/cpython/
Dweakrefobject.h30 PyWeakReference *wr_prev;
31 PyWeakReference *wr_next;
43 PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self);
47 PyWeakReference *ref; in PyWeakref_GET_OBJECT()
50 ref = _Py_CAST(PyWeakReference*, ref_obj); in PyWeakref_GET_OBJECT()
/external/python/cpython3/Include/internal/
Dpycore_weakref.h61 PyWeakReference *ref = _Py_CAST(PyWeakReference*, ref_obj); in _PyWeakref_GET_REF()
89 PyWeakReference *ref = _Py_CAST(PyWeakReference*, ref_obj); in _PyWeakref_IS_DEAD()
Dpycore_object.h641 static inline PyWeakReference **
647 return (PyWeakReference **)((char *)op + offset); in _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET()
/external/python/cpython3/Modules/
D_weakref.c7 ((PyWeakReference **) _PyObject_GET_WEAKREFS_LISTPTR(o))
88 PyWeakReference *current = *GET_WEAKREFS_LISTPTR(object); in _weakref_getweakrefs()
/external/pytorch/torch/csrc/utils/
Dpython_compat.h38 extern void _PyWeakref_ClearRef(PyWeakReference* self);
/external/python/cpython3/Include/
Dweakrefobject.h9 typedef struct _PyWeakReference PyWeakReference; typedef
/external/python/cpython3/Python/
Dgc_free_threading.c683 _PyWeakref_ClearRef((PyWeakReference *)op); in clear_weakrefs()
692 PyWeakReference **wrlist = _PyObject_GET_WEAKREFS_LISTPTR_FROM_OFFSET(op); in clear_weakrefs()
697 for (PyWeakReference *wr = *wrlist; wr != NULL; wr = *wrlist) { in clear_weakrefs()
732 PyWeakReference *wr = (PyWeakReference *)op; in call_weakref_callbacks()
Dgc.c754 PyWeakReference *wr; /* generally a cast of op */ in handle_weakrefs()
770 PyWeakReference **wrlist; in handle_weakrefs()
787 _PyWeakref_ClearRef((PyWeakReference *)op); in handle_weakrefs()
877 wr = (PyWeakReference *)op; in handle_weakrefs()
/external/pytorch/torch/csrc/
DStorage.cpp254 PyWeakReference** list = in THPStorage_subclass_dealloc()
255 (PyWeakReference**)PyObject_GET_WEAKREFS_LISTPTR(self); in THPStorage_subclass_dealloc()
/external/pytorch/torch/csrc/autograd/
Dpython_variable.cpp1954 PyWeakReference** list = in THPVariable_subclass_dealloc()
1955 (PyWeakReference**)PyObject_GET_WEAKREFS_LISTPTR(self); in THPVariable_subclass_dealloc()
/external/python/cpython3/Doc/data/
Dstable_abi.dat816 type,PyWeakReference,3.2,,opaque
Dpython3.13.abi10719 …<typedef-decl name='PyWeakReference' type-id='type-id-548' filepath='./Include/weakrefobject.h' li…
/external/python/cpython3/Misc/NEWS.d/
D3.11.0a2.rst1192 worked since the :c:type:`!PyWeakReference` structure is opaque in the
/external/python/cpython3/Misc/
Dstable_abi.toml136 [struct.PyWeakReference]
/external/python/cpython3/Doc/whatsnew/
D3.11.rst2677 worked since the :c:type:`!PyWeakReference` structure is opaque in the