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

/gem5/ext/pybind11/tests/
H A Dtest_call_policies.cpp2 tests/test_call_policies.cpp -- keep_alive and call_guard
76 m.def("guarded_call", &CustomGuard::report_status, py::call_guard<CustomGuard>());
80 }, py::call_guard<CustomGuard, DependentGuard>());
84 }, py::call_guard<DependentGuard, CustomGuard>());
87 // `py::call_guard<py::gil_scoped_release>()` should work in PyPy as well,
98 m.def("without_gil", report_gil_status, py::call_guard<py::gil_scoped_release>());
H A Dtest_iostream.cpp45 py::call_guard<py::scoped_ostream_redirect>(),
56 py::call_guard<py::scoped_ostream_redirect, py::scoped_estream_redirect>(),
/gem5/ext/pybind11/include/pybind11/
H A Dattr.h80 m.def("foo", foo, py::call_guard<T>());
91 template <typename... Ts> struct call_guard;
93 template <> struct call_guard<> { using type = detail::void_type; }; struct
96 struct call_guard<T> { struct
104 struct call_guard<T, Ts...> { struct
107 typename call_guard<Ts...>::type next{};
439 struct process_attribute<call_guard<Ts...>> : process_attribute_default<call_guard<Ts...>> { };
478 using is_call_guard = is_instantiation<call_guard, T>;
480 /// Extract the ``type`` from the first `call_guard` i
[all...]

Completed in 7 milliseconds