diff options
Diffstat (limited to 'TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp')
-rw-r--r-- | TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp index fb2b427f324..5eaee1f34e9 100644 --- a/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp +++ b/TAO/examples/Simulator/Event_Supplier/DualEC_Sup.cpp @@ -186,7 +186,6 @@ DualEC_Supplier::init () this->naming_context_ = CosNaming::NamingContext::_narrow (namingObj_var.in ()); - } catch (const CORBA::Exception& ex) { @@ -266,7 +265,7 @@ DualEC_Supplier::init () // Private class that implements a termination servant. void -DualEC_Supplier::Terminator::shutdown (void) +DualEC_Supplier::Terminator::shutdown () { TAO_ORB_Core_instance ()->orb ()->shutdown (); } @@ -349,10 +348,8 @@ DualEC_Supplier::run_nav_thread (void *arg) if (nav_iter.done ()) nav_iter.first (); - } while (++total_sent < sup->total_messages_); - } catch (const CORBA::Exception&) { @@ -418,10 +415,8 @@ DualEC_Supplier::run_weap_thread (void *arg) if (weap_iter.done ()) weap_iter.first (); - } while (++total_sent < sup->total_messages_); - } catch (const CORBA::Exception&) { @@ -431,12 +426,11 @@ DualEC_Supplier::run_weap_thread (void *arg) } - // Create two scheduling service instances, register // them with the Naming Service. int -DualEC_Supplier::create_schedulers (void) +DualEC_Supplier::create_schedulers () { // @@TBD - look at a command line modified setting, // create either a runtime or a config scheduler for @@ -548,8 +542,6 @@ DualEC_Supplier::create_schedulers (void) this->rt_info_dummy_lo_.quantum, this->rt_info_dummy_lo_.threads, static_cast<RtecScheduler::Info_Type_t> (this->rt_info_dummy_lo_.info_type)); - - } } catch (const CORBA::Exception& ex) @@ -566,7 +558,7 @@ DualEC_Supplier::create_schedulers (void) // them with the Naming Service. int -DualEC_Supplier::create_event_channels (void) +DualEC_Supplier::create_event_channels () { try { @@ -601,7 +593,6 @@ DualEC_Supplier::create_event_channels (void) naming_context_->bind (this->channel_lo_name_, this->ec_lo_.in ()); - } catch (const CORBA::Exception& ex) { @@ -613,7 +604,7 @@ DualEC_Supplier::create_event_channels (void) } void -DualEC_Supplier::compute_schedules (void) +DualEC_Supplier::compute_schedules () { try { @@ -662,7 +653,7 @@ DualEC_Supplier::compute_schedules (void) } void -DualEC_Supplier::start_generating_events (void) +DualEC_Supplier::start_generating_events () { try { @@ -1032,7 +1023,6 @@ ACE_TMAIN(int argc, ACE_TCHAR *argv[]) } - try { // Initialize ORB. |