Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9369 in orxonox.OLD for branches/proxy/src/lib/util/sigslot


Ignore:
Timestamp:
Jul 20, 2006, 9:16:39 PM (18 years ago)
Author:
bensch
Message:

orxonox/proxy switched to sigslot library, and it seems to work, but i am not entirely sure…

Location:
branches/proxy/src/lib/util/sigslot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/util/sigslot/signal.h

    r9368 r9369  
    12381238    virtual _connection_base0<mt_policy>* duplicate(has_slots<mt_policy>* pnewdest)
    12391239    {
    1240       return new _connection0<dest_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1240      return new _connection0<dest_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    12411241    }
    12421242
     
    12791279    virtual _connection_base1<arg1_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest)
    12801280    {
    1281       return new _connection1<dest_type, arg1_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1281      return new _connection1<dest_type, arg1_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    12821282    }
    12831283
     
    13211321    virtual _connection_base2<arg1_type, arg2_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest)
    13221322    {
    1323       return new _connection2<dest_type, arg1_type, arg2_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1323      return new _connection2<dest_type, arg1_type, arg2_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    13241324    }
    13251325
     
    13631363    virtual _connection_base3<arg1_type, arg2_type, arg3_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest)
    13641364    {
    1365       return new _connection3<dest_type, arg1_type, arg2_type, arg3_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1365      return new _connection3<dest_type, arg1_type, arg2_type, arg3_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    13661366    }
    13671367
     
    14071407    virtual _connection_base4<arg1_type, arg2_type, arg3_type, arg4_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest)
    14081408    {
    1409       return new _connection4<dest_type, arg1_type, arg2_type, arg3_type, arg4_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1409      return new _connection4<dest_type, arg1_type, arg2_type, arg3_type, arg4_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    14101410    }
    14111411
     
    14571457    {
    14581458      return new _connection5<dest_type, arg1_type, arg2_type, arg3_type, arg4_type,
    1459              arg5_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1459      arg5_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    14601460    }
    14611461
     
    15071507    {
    15081508      return new _connection6<dest_type, arg1_type, arg2_type, arg3_type, arg4_type,
    1509              arg5_type, arg6_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1509      arg5_type, arg6_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    15101510    }
    15111511
     
    15571557    {
    15581558      return new _connection7<dest_type, arg1_type, arg2_type, arg3_type, arg4_type,
    1559              arg5_type, arg6_type, arg7_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1559      arg5_type, arg6_type, arg7_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    15601560    }
    15611561
     
    16091609    {
    16101610      return new _connection8<dest_type, arg1_type, arg2_type, arg3_type, arg4_type,
    1611              arg5_type, arg6_type, arg7_type, arg8_type, mt_policy>((dest_type *)pnewdest, m_pmemfun);
     1611      arg5_type, arg6_type, arg7_type, arg8_type, mt_policy>(dynamic_cast<dest_type*>(pnewdest), m_pmemfun);
    16121612    }
    16131613
  • branches/proxy/src/lib/util/sigslot/slot.h

    r9361 r9369  
    240240
    241241  template<class mt_policy = SIGSLOT_DEFAULT_MT_POLICY>
    242   class has_slots : public mt_policy
     242  class has_slots //: public mt_policy
    243243  {
    244244    private:
     
    253253
    254254      has_slots(const has_slots& hs)
    255           : mt_policy(hs)
    256       {
    257         lock_block<mt_policy> lock(this);
     255//          : mt_policy(hs)
     256      {
     257        //lock_block<mt_policy> lock(this);
    258258        const_iterator it = hs.m_senders.begin();
    259259        const_iterator itEnd = hs.m_senders.end();
     
    269269      void signal_connect(_signal_base<mt_policy>* sender)
    270270      {
    271         lock_block<mt_policy> lock(this);
     271        //lock_block<mt_policy> lock(this);
    272272        m_senders.insert(sender);
    273273      }
     
    275275      void signal_disconnect(_signal_base<mt_policy>* sender)
    276276      {
    277         lock_block<mt_policy> lock(this);
     277        //lock_block<mt_policy> lock(this);
    278278        m_senders.erase(sender);
    279279      }
     
    286286      void disconnect_all()
    287287      {
    288         lock_block<mt_policy> lock(this);
     288        //lock_block<mt_policy> lock(this);
    289289        const_iterator it = m_senders.begin();
    290290        const_iterator itEnd = m_senders.end();
Note: See TracChangeset for help on using the changeset viewer.