Searched refs:wr_callback (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython2/Objects/ |
D | weakrefobject.c | 30 self->wr_callback = callback; in init_weakref() 55 PyObject *callback = self->wr_callback; in clear_weakref() 75 self->wr_callback = NULL; in clear_weakref() 98 callback = self->wr_callback; in _PyWeakref_ClearRef() 99 self->wr_callback = NULL; in _PyWeakref_ClearRef() 101 self->wr_callback = callback; in _PyWeakref_ClearRef() 116 Py_VISIT(self->wr_callback); in gc_traverse() 229 if (head != NULL && head->wr_callback == NULL) { in get_basic_refs() 238 && head->wr_callback == NULL in get_basic_refs() 542 if (self->wr_callback != NULL) in proxy_dealloc() [all …]
|
/external/python/cpython3/Objects/ |
D | weakrefobject.c | 31 self->wr_callback = callback; in init_weakref() 56 PyObject *callback = self->wr_callback; in clear_weakref() 76 self->wr_callback = NULL; in clear_weakref() 99 callback = self->wr_callback; in _PyWeakref_ClearRef() 100 self->wr_callback = NULL; in _PyWeakref_ClearRef() 102 self->wr_callback = callback; in _PyWeakref_ClearRef() 117 Py_VISIT(self->wr_callback); in gc_traverse() 241 if (head != NULL && head->wr_callback == NULL) { in get_basic_refs() 250 && head->wr_callback == NULL in get_basic_refs() 361 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY}, [all …]
|
/external/python/cpython2/Modules/ |
D | threadmodule.c | 272 PyObject *wr_callback; member 302 wr = PyWeakref_NewRef((PyObject *) dummy, self->wr_callback); in _local_create_dummy() 371 self->wr_callback = PyCFunction_New(&wr_callback_def, wr); in local_new() 373 if (self->wr_callback == NULL) in local_new() 402 Py_CLEAR(self->wr_callback); in local_clear()
|
D | gcmodule.c | 648 if (wr->wr_callback == NULL) in handle_weakrefs() 709 callback = wr->wr_callback; in handle_weakrefs()
|
/external/python/cpython3/Include/ |
D | weakrefobject.h | 26 PyObject *wr_callback; member
|
/external/python/cpython2/Include/ |
D | weakrefobject.h | 25 PyObject *wr_callback; member
|
/external/python/cpython3/Modules/ |
D | _threadmodule.c | 681 PyObject *wr_callback; member 711 wr = PyWeakref_NewRef((PyObject *) dummy, self->wr_callback); in _local_create_dummy() 780 self->wr_callback = PyCFunction_NewEx(&wr_callback_def, wr, NULL); in local_new() 782 if (self->wr_callback == NULL) in local_new() 811 Py_CLEAR(self->wr_callback); in local_clear()
|
D | gcmodule.c | 806 if (wr->wr_callback == NULL) { in handle_weakrefs() 870 callback = wr->wr_callback; in handle_weakrefs()
|
/external/python/cpython3/Lib/test/ |
D | test_weakref.py | 2051 wr_callback = weakref.ref(callback) 2055 self.assertIsNotNone(wr_callback()) 2061 self.assertIsNone(wr_callback())
|