MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / SyncServer

Method SyncServer

performance-tests/DCPS/InfoRepo_population/SyncServer.cpp:63–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63SyncServer::SyncServer (int argc, ACE_TCHAR* argv[])
64 : pub_count_ (1), sub_count_ (1)
65{
66 try
67 {
68 CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, "SyncServer");
69 if (!this->parse_args (argc, argv)) {
70 throw InitError ("SyncServer encountered failure while parsing arguments.\n");
71 }
72
73 sync_server_.reset (new SyncExt_i (pub_count_, sub_count_
74 , orb.in()));
75 // Bump up the ref count (TAO proprietary) so object can exist
76 // beyond ORB destruction.
77 sync_server_->_add_ref();
78 }
79 catch (SyncServer_i::InitError& e) {
80 throw InitError (e);
81 }
82 catch (CORBA::Exception& ex) {
83 throw InitError (ex._info().c_str());
84 }
85}
86
87bool
88SyncServer::run (void)

Callers

nothing calls this directly

Calls 5

parse_argsMethod · 0.95
_infoMethod · 0.80
resetMethod · 0.45
inMethod · 0.45
_add_refMethod · 0.45

Tested by

no test coverage detected