Searched refs:wr_callback (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython3/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() 226 if (head != NULL && head->wr_callback == NULL) { in get_basic_refs() 235 && head->wr_callback == NULL in get_basic_refs() 346 {"__callback__", T_OBJECT, offsetof(PyWeakReference, wr_callback), READONLY}, [all …]
|
/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/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/Modules/ |
D | _threadmodule.c | 642 PyObject *wr_callback; member 672 wr = PyWeakref_NewRef((PyObject *) dummy, self->wr_callback); in _local_create_dummy() 741 self->wr_callback = PyCFunction_NewEx(&wr_callback_def, wr, NULL); in local_new() 743 if (self->wr_callback == NULL) in local_new() 772 Py_CLEAR(self->wr_callback); in local_clear()
|
D | gcmodule.c | 544 if (wr->wr_callback == NULL) in handle_weakrefs() 605 callback = wr->wr_callback; in handle_weakrefs()
|
/external/python/cpython2/Include/ |
D | weakrefobject.h | 25 PyObject *wr_callback; member
|
/external/python/cpython3/Include/ |
D | weakrefobject.h | 26 PyObject *wr_callback; member
|
/external/python/cpython3/Lib/test/ |
D | test_weakref.py | 1892 wr_callback = weakref.ref(callback) 1896 self.assertIsNotNone(wr_callback()) 1902 self.assertIsNone(wr_callback())
|