Changeset 9369 in orxonox.OLD for branches/proxy/src/lib/util/sigslot
- Timestamp:
- Jul 20, 2006, 9:16:39 PM (18 years ago)
- Location:
- branches/proxy/src/lib/util/sigslot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/util/sigslot/signal.h
r9368 r9369 1238 1238 virtual _connection_base0<mt_policy>* duplicate(has_slots<mt_policy>* pnewdest) 1239 1239 { 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); 1241 1241 } 1242 1242 … … 1279 1279 virtual _connection_base1<arg1_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest) 1280 1280 { 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); 1282 1282 } 1283 1283 … … 1321 1321 virtual _connection_base2<arg1_type, arg2_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest) 1322 1322 { 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); 1324 1324 } 1325 1325 … … 1363 1363 virtual _connection_base3<arg1_type, arg2_type, arg3_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest) 1364 1364 { 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); 1366 1366 } 1367 1367 … … 1407 1407 virtual _connection_base4<arg1_type, arg2_type, arg3_type, arg4_type, mt_policy>* duplicate(has_slots<mt_policy>* pnewdest) 1408 1408 { 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); 1410 1410 } 1411 1411 … … 1457 1457 { 1458 1458 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); 1460 1460 } 1461 1461 … … 1507 1507 { 1508 1508 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); 1510 1510 } 1511 1511 … … 1557 1557 { 1558 1558 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); 1560 1560 } 1561 1561 … … 1609 1609 { 1610 1610 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); 1612 1612 } 1613 1613 -
branches/proxy/src/lib/util/sigslot/slot.h
r9361 r9369 240 240 241 241 template<class mt_policy = SIGSLOT_DEFAULT_MT_POLICY> 242 class has_slots : public mt_policy242 class has_slots //: public mt_policy 243 243 { 244 244 private: … … 253 253 254 254 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); 258 258 const_iterator it = hs.m_senders.begin(); 259 259 const_iterator itEnd = hs.m_senders.end(); … … 269 269 void signal_connect(_signal_base<mt_policy>* sender) 270 270 { 271 lock_block<mt_policy> lock(this);271 //lock_block<mt_policy> lock(this); 272 272 m_senders.insert(sender); 273 273 } … … 275 275 void signal_disconnect(_signal_base<mt_policy>* sender) 276 276 { 277 lock_block<mt_policy> lock(this);277 //lock_block<mt_policy> lock(this); 278 278 m_senders.erase(sender); 279 279 } … … 286 286 void disconnect_all() 287 287 { 288 lock_block<mt_policy> lock(this);288 //lock_block<mt_policy> lock(this); 289 289 const_iterator it = m_senders.begin(); 290 290 const_iterator itEnd = m_senders.end();
Note: See TracChangeset
for help on using the changeset viewer.