Searched refs:handle (Results 1 - 25 of 47) sorted by relevance

12

/gem5/src/systemc/tests/systemc/kernel/sc_process_b/test03/
H A Dtest03.cpp48 sc_process_handle handle = sc_get_current_process_handle(); local
49 cout << handle.name() << " " << handle.proc_kind() << endl;
55 sc_process_handle handle = sc_get_current_process_handle(); local
56 cout << handle.name() << " " << handle.proc_kind() << endl;
/gem5/ext/systemc/src/sysc/kernel/
H A Dsc_join.cpp63 sc_thread_handle handle = DCAST<sc_thread_handle>(process_p); local
64 assert( handle != 0 );
66 handle->add_monitor( this );
76 // process_h = handle for process to be monitored.
H A Dsc_module.h416 #define declare_method_process(handle, name, host_tag, func) \
418 ::sc_core::sc_process_handle handle = \
422 this->sensitive << handle; \
423 this->sensitive_pos << handle; \
424 this->sensitive_neg << handle; \
427 #define declare_thread_process(handle, name, host_tag, func) \
429 ::sc_core::sc_process_handle handle = \
433 this->sensitive << handle; \
434 this->sensitive_pos << handle; \
435 this->sensitive_neg << handle; \
[all...]
H A Dsc_simcontext.cpp293 sc_process_handle invoker_h; // handle for invocation thread to use.
1137 sc_thread_handle handle = local
1141 handle->prepare_for_simulation();
1143 m_process_table->push_front( handle );
1145 return sc_process_handle(handle);
1154 sc_method_handle handle = local
1157 if ( !handle->dont_initialize() )
1166 "`" << handle->name() << "' ignored";
1173 push_runnable_method( handle );
1176 else if ( handle
1194 sc_thread_handle handle = local
[all...]
/gem5/src/systemc/tests/systemc/kernel/sc_process_handle/test01/
H A Dtest01.cpp38 // Test of return values for sc_process handle instances, along with
62 << " non-null process handle == null process handle" << endl;
155 sc_process_handle handle; local
159 if ( handle == handle2 )
164 if ( !(handle != handle2) )
169 const std::vector<sc_object*>& objects = handle.get_child_objects();
175 if ( handle.get_parent_object() != 0 )
180 if ( strcmp( handle.name(), "") )
185 if ( handle
[all...]
/gem5/src/systemc/core/
H A Dsc_process_handle.cc79 sc_process_handle::sc_process_handle(const sc_process_handle &handle) : argument
80 _gem5_process(handle._gem5_process)
108 sc_process_handle::operator = (const sc_process_handle &handle) argument
112 _gem5_process = handle._gem5_process;
119 sc_process_handle::operator == (const sc_process_handle &handle) const
121 return _gem5_process && handle._gem5_process &&
122 (_gem5_process == handle._gem5_process);
126 sc_process_handle::operator != (const sc_process_handle &handle) const
128 return !(handle == *this);
138 sc_process_handle::swap(sc_process_handle &handle) argument
[all...]
/gem5/ext/nomali/tests/
H A Dnomali_test_helpers.h46 #define NOMALI_TEST_REG(t, handle, reg, test) \
50 nomali_reg_read(handle, &value, (reg))); \
/gem5/ext/pybind11/include/pybind11/
H A Dpytypes.h20 class handle; class object;
26 inline bool isinstance_generic(handle obj, const std::type_info &tp);
50 A mixin class which adds common functions to `handle`, `object` and various accessors.
68 the returned ``detail::item_accessor`` instance to a `handle` or `object`
69 subclass causes a corresponding call to ``__getitem__``. Assigning a `handle`
72 item_accessor operator[](handle key) const;
78 returned ``detail::obj_attr_accessor`` instance to a `handle` or `object`
79 subclass causes a corresponding call to ``getattr``. Assigning a `handle`
82 obj_attr_accessor attr(handle key) const;
101 may need to be converted back into a Python object using `handle
174 class handle : public detail::object_api<handle> { class in inherits:detail::object_api
179 handle(PyObject *ptr) : m_ptr(ptr) { } // Allow implicit conversion from PyObject* function in class:handle
[all...]
H A Dcast.h64 PYBIND11_NOINLINE static void add_patient(handle h) {
93 for (handle parent : reinterpret_borrow<tuple>(t->tp_bases))
130 for (handle parent : reinterpret_borrow<tuple>(type->tp_bases))
201 PYBIND11_NOINLINE inline handle get_type_handle(const std::type_info &tp, bool throw_if_missing) {
203 return handle(type_info ? ((PyObject *) type_info->type) : nullptr);
399 PYBIND11_NOINLINE inline bool isinstance_generic(handle obj, const std::type_info &tp) {
400 handle type = detail::get_type_handle(tp, false);
416 errorString += handle(scope.type).attr("__name__").cast<std::string>();
442 " " + handle(frame->f_code->co_filename).cast<std::string>() +
444 handle(fram
[all...]
H A Dattr.h21 struct is_method { handle class_; is_method(const handle &c) : class_(c) { } };
27 struct scope { handle value; scope(const handle &s) : value(s) { } };
36 struct sibling { handle value; sibling(const handle &value) : value(value.ptr()) { } };
58 handle value;
64 explicit metaclass(handle value) : value(value) { }
119 inline void keep_alive_impl(size_t Nurse, size_t Patient, function_call &call, handle ret);
125 handle valu
[all...]
H A Dstl.h71 bool load(handle src, bool convert) {
86 static handle cast(T &&src, return_value_policy policy, handle parent) {
93 return handle();
105 bool load(handle src, bool convert) {
122 static handle cast(T &&src, return_value_policy policy, handle parent) {
134 return handle();
146 bool load(handle src, bool convert) {
169 static handle cas
[all...]
H A Dcomplex.h44 bool load(handle src, bool convert) {
58 static handle cast(const std::complex<T> &src, return_value_policy /* policy */, handle /* parent */) {
H A Deigen.h213 template <typename props> handle eigen_array_cast(typename props::Type const &src, handle base = handle(), bool writeable = true) { argument
233 handle eigen_ref_array(Type &src, handle parent = none()) {
244 handle eigen_encapsulate(Type *src) {
256 bool load(handle src, bool convert) {
295 static handle cast_impl(CType *src, return_value_policy policy, handle parent) {
317 static handle cas
[all...]
H A Dfunctional.h25 bool load(handle src, bool convert) {
85 static handle cast(Func &&f_, return_value_policy policy, handle /* parent */) {
H A Dchrono.h40 bool load(handle src, bool) {
73 static handle cast(const type &src, return_value_policy /* policy */, handle /* parent */) {
102 bool load(handle src, bool) {
147 static handle cast(const std::chrono::time_point<std::chrono::system_clock, Duration> &src, return_value_policy /* policy */, handle /* parent */) {
H A Dpybind11.h137 rec->impl = [](function_call &call) -> handle {
159 handle result = cast_out::cast(
255 handle th((PyObject *) tinfo->type);
434 handle parent = n_args_in > 0 ? PyTuple_GET_ITEM(args_in, 0) : nullptr,
523 handle arg(PyTuple_GET_ITEM(args_in, args_copied));
544 handle value;
713 return handle(Py_NotImplemented).inc_ref().ptr();
868 PYBIND11_NOINLINE void add_object(const char *name, handle obj, bool overwrite = false) {
946 for (handle h : t) {
973 handle fge
[all...]
/gem5/ext/pybind11/tests/
H A Dpybind11_tests.h61 static handle cast(RValueCaster &&, return_value_policy, handle) { return py::str("rvalue").release(); }
62 static handle cast(const RValueCaster &, return_value_policy, handle) { return py::str("lvalue").release(); }
H A Dtest_copy_move.cpp75 bool load(handle src, bool) { value = MoveOnlyInt(src.cast<int>()); return true; }
76 static handle cast(const MoveOnlyInt &m, return_value_policy r, handle p) { return pybind11::cast(m.value, r, p); }
81 bool load(handle src, bool) { value = MoveOrCopyInt(src.cast<int>()); return true; }
82 static handle cast(const MoveOrCopyInt &m, return_value_policy r, handle p) { return pybind11::cast(m.value, r, p); }
90 bool load(handle src, bool) { value = CopyOnlyInt(src.cast<int>()); return true; }
91 static handle cast(const CopyOnlyInt &m, return_value_policy r, handle p) { return pybind11::cast(m.value, r, p); }
92 static handle cas
[all...]
H A Dtest_kwargs_and_defaults.cpp66 m.def("arg_refcount_h", [](py::handle h) { GC_IF_NEEDED; return h.ref_count(); });
67 m.def("arg_refcount_h", [](py::handle h, py::handle, py::handle) { GC_IF_NEEDED; return h.ref_count(); });
H A Dtest_methods_and_attributes.cpp117 bool load(handle src, bool convert) {
124 static handle cast(const ArgInspector1 &src, return_value_policy, handle) {
132 bool load(handle src, bool convert) {
139 static handle cast(const ArgInspector2 &src, return_value_policy, handle) {
147 bool load(handle, bool convert) {
151 static handle cast(const ArgAlwaysConverts &, return_value_policy, handle) {
170 bool load(handle, boo
[all...]
/gem5/src/base/
H A Dpngwriter.cc128 PngStructHandle handle; local
131 png_structp pngPtr = handle.pngWriteP;
132 png_infop infoPtr = handle.pngInfoP;
H A Dtrie.hh289 remove(Handle handle) argument
291 Node *node = handle;
335 Handle handle = lookupHandle(key); local
336 if (!handle)
338 return remove(handle);
/gem5/util/style/
H A Dfile_types.py109 handle = file(filename, 'r')
110 firstline = handle.readline()
111 handle.close()
166 place and return the handle to the updated file. If inplace is
/gem5/src/systemc/tests/systemc/1666-2011-compliance/named_events/
H A Dnamed_events.cpp109 sc_process_handle handle = sc_get_current_process_handle(); local
110 std::string proc_name = handle.name();
113 sc_assert( ev1.get_parent_object() == handle.get_process_object() );
119 sc_assert( ev2.get_parent_object() == handle.get_process_object() );
124 std::vector<sc_event*> vec = handle.get_child_events();
/gem5/ext/testlib/
H A Dhandlers.py122 def handle(self, record): member in class:ResultHandler
218 def handle(self, record): member in class:SummaryHandler
328 def handle(self, record): member in class:TerminalHandler
341 def handle(self, record): member in class:PrintHandler
419 self._with_handlers(lambda handler: handler.handle(record))
421 def handle(self, record): member in class:MultiprocessingHandlerWrapper

Completed in 48 milliseconds

12