[complement-svn] SF.net SVN: complement: [1756] trunk/complement/explore/lib/janus
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-10-01 16:33:31
|
Revision: 1756 http://complement.svn.sourceforge.net/complement/?rev=1756&view=rev Author: complement Date: 2007-10-01 09:33:28 -0700 (Mon, 01 Oct 2007) Log Message: ----------- more traces Modified Paths: -------------- trunk/complement/explore/lib/janus/janus.cc trunk/complement/explore/lib/janus/vshostmgr.cc Modified: trunk/complement/explore/lib/janus/janus.cc =================================================================== --- trunk/complement/explore/lib/janus/janus.cc 2007-10-01 15:55:37 UTC (rev 1755) +++ trunk/complement/explore/lib/janus/janus.cc 2007-10-01 16:33:28 UTC (rev 1756) @@ -318,6 +318,16 @@ // cerr << "**** " << grp << " " << xmt::getpid() << endl; if ( /* (grp != vshosts_group) && */ (_hostmgr != 0) ) { +#ifdef __FIT_VS_TRACE + try { + scoped_lock lk(_lock_tr); + if ( _trs != 0 && _trs->good() && (_trflags & tracegroup) ) { + *_trs << " ????? " << __FILE__ << ":" << __LINE__ << endl; + } + } + catch ( ... ) { + } +#endif // __FIT_VS_TRACE _hostmgr->Subscribe( addr, grp ); } } Modified: trunk/complement/explore/lib/janus/vshostmgr.cc =================================================================== --- trunk/complement/explore/lib/janus/vshostmgr.cc 2007-10-01 15:55:37 UTC (rev 1755) +++ trunk/complement/explore/lib/janus/vshostmgr.cc 2007-10-01 16:33:28 UTC (rev 1756) @@ -120,6 +120,16 @@ ga.addr = stem::janus_addr; } +#ifdef __FIT_VS_TRACE + try { + scoped_lock lk(vtdispatcher()->_lock_tr); + if ( vtdispatcher()->_trs != 0 && vtdispatcher()->_trs->good() && (vtdispatcher()->_trflags & Janus::tracenet) ) { + *vtdispatcher()->_trs << "VSHostMgr sync (add) " << ga << endl; + } + } + catch ( ... ) { + } +#endif // __FIT_VS_TRACE vshost.insert( ga ); // address of remote Janus stem::__pack_base::__net_pack( s, static_cast<uint32_t>(vshost.size()) ); @@ -163,7 +173,7 @@ try { scoped_lock lk(vtdispatcher()->_lock_tr); if ( vtdispatcher()->_trs != 0 && vtdispatcher()->_trs->good() && (vtdispatcher()->_trflags & Janus::tracenet) ) { - *vtdispatcher()->_trs << "VS see node " << ga << endl; + *vtdispatcher()->_trs << "VSHostMgr sync " << ga << endl; } } catch ( ... ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |