Beispiel #1
0
        void core_device_t_after_ctor(netlist_state_t owner, string name)
        {
            m_hint_deactivate = false;
            m_active_outputs  = new state_var_s32(this, "m_active_outputs", 1);


            if (exec().stats_enabled())
            {
                m_stats = new stats_t();  //m_stats = owner.make_pool_object<stats_t>();
            }
        }
Beispiel #2
0
        void core_device_t_after_ctor(core_device_t owner, string name)
        {
            m_hint_deactivate = false;
            m_active_outputs  = new state_var_s32(this, "m_active_outputs", 1);


            //printf("owned device: %s\n", this->name().c_str());
            owner.state().register_device(this.name(), this);  //owner.state().register_device(this->name(), device_arena::owned_ptr<core_device_t>(this, false));
            if (exec().stats_enabled())
            {
                m_stats = new stats_t();  //m_stats = owner.state().make_pool_object<stats_t>();
            }
        }