Searched refs:patient (Results 1 - 3 of 3) sorted by relevance

/gem5/ext/pybind11/include/pybind11/detail/
H A Dclass.h290 inline void add_patient(PyObject *nurse, PyObject *patient) { argument
294 Py_INCREF(patient);
295 internals.patients[nurse].push_back(patient);
309 for (PyObject *&patient : patients)
310 Py_CLEAR(patient);
/gem5/ext/pybind11/include/pybind11/
H A Dpybind11.h1598 inline void keep_alive_impl(handle nurse, handle patient) { argument
1599 if (!nurse || !patient)
1602 if (patient.is_none() || nurse.is_none())
1607 /* It's a pybind-registered type, so we can store the patient in the
1609 add_patient(nurse.ptr(), patient.ptr());
1616 [patient](handle weakref) { patient.dec_ref(); weakref.dec_ref(); });
1620 patient.inc_ref(); /* reference patient and leak the weak reference */
H A Dcast.h39 /// Adding a patient will keep it alive up until the enclosing function returns.
42 /// A new patient frame is created when a function is entered
80 pybind11_fail("loader_life_support: error adding patient");
480 inline void keep_alive_impl(handle nurse, handle patient);

Completed in 23 milliseconds