diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-02-12 09:23:36 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-02-12 09:23:36 +0000 |
commit | cd82c8b31f82f535c69a3c4f3c86dd9c9e1123dc (patch) | |
tree | c065201a8b02e5cc1efe8f37480fc34e375478f8 /TAO/examples/Kokyu_dsrt_schedulers | |
parent | b65364353b8af34317a0d48ba47cecd3c48d5c40 (diff) | |
download | ATCD-cd82c8b31f82f535c69a3c4f3c86dd9c9e1123dc.tar.gz |
Mon Feb 12 09:20:14 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/examples/Kokyu_dsrt_schedulers')
14 files changed, 108 insertions, 416 deletions
diff --git a/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.cpp index f8b9de0d5e2..5730aaacbf4 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.cpp @@ -16,14 +16,12 @@ using namespace std; EDF_Scheduling::SchedulingParameter EDF_Sched_Param_Policy::value (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { return this->value_; } void EDF_Sched_Param_Policy::value (const EDF_Scheduling::SchedulingParameter& value) - ACE_THROW_SPEC ((CORBA::SystemException)) { this->value_ = value; } @@ -92,7 +90,6 @@ EDF_Scheduler::shutdown (void) EDF_Scheduling::SchedulingParameterPolicy_ptr EDF_Scheduler::create_scheduling_parameter (const EDF_Scheduling::SchedulingParameter & value) - ACE_THROW_SPEC ((CORBA::SystemException)) { /* MEASURE: Time to create scheduling parameter */ DSUI_EVENT_LOG (EDF_SCHED_FAM, CREATE_SCHED_PARAM, 0, 0, NULL); @@ -117,8 +114,6 @@ EDF_Scheduler::begin_new_scheduling_segment (const RTScheduling::Current::IdType const char *, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { #ifdef KOKYU_DSRT_LOGGING ACE_DEBUG ((LM_DEBUG, @@ -158,8 +153,6 @@ EDF_Scheduler::begin_nested_scheduling_segment (const RTScheduling::Current::IdT const char *name, CORBA::Policy_ptr sched_param, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -177,8 +170,6 @@ EDF_Scheduler::update_scheduling_segment (const RTScheduling::Current::IdType& g const char* name, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { ACE_UNUSED_ARG ((name)); ACE_UNUSED_ARG ((implicit_sched_param)); @@ -208,7 +199,6 @@ EDF_Scheduler::update_scheduling_segment (const RTScheduling::Current::IdType& g void EDF_Scheduler::end_scheduling_segment (const RTScheduling::Current::IdType &guid, const char *) - ACE_THROW_SPEC ((CORBA::SystemException)) { int int_guid; @@ -227,7 +217,6 @@ void EDF_Scheduler::end_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -239,8 +228,6 @@ EDF_Scheduler::end_nested_scheduling_segment (const RTScheduling::Current::IdTyp void EDF_Scheduler::send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -348,8 +335,6 @@ EDF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, CORBA::String_out /*name*/, CORBA::Policy_out sched_param_out, CORBA::Policy_out /*implicit_sched_param_out*/) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS* sc_qos_ptr; @@ -477,8 +462,6 @@ EDF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, void EDF_Scheduler::send_poll (PortableInterceptor::ClientRequestInfo_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -489,7 +472,6 @@ EDF_Scheduler::send_poll (PortableInterceptor::ClientRequestInfo_ptr) void EDF_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -576,8 +558,6 @@ EDF_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) void EDF_Scheduler::send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -590,8 +570,6 @@ EDF_Scheduler::send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) void EDF_Scheduler::send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { int int_guid; ACE_OS::memcpy (&int_guid, @@ -604,7 +582,6 @@ EDF_Scheduler::send_other (PortableInterceptor::ServerRequestInfo_ptr ri) void EDF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { int int_guid; @@ -679,8 +656,6 @@ EDF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) void EDF_Scheduler::receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { DSUI_EVENT_LOG (EDF_SCHED_FAM, RECEIVE_EXCEPTION, 0, 0, NULL); @@ -689,8 +664,6 @@ EDF_Scheduler::receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) void EDF_Scheduler::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { DSUI_EVENT_LOG (EDF_SCHED_FAM, RECEIVE_OTHER, 0, 0, NULL); @@ -702,35 +675,30 @@ EDF_Scheduler::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) void EDF_Scheduler::cancel (const RTScheduling::Current::IdType &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* EDF_Scheduler::scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } void EDF_Scheduler::scheduling_policies (const CORBA::PolicyList &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* EDF_Scheduler::poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } char * EDF_Scheduler::scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -738,7 +706,6 @@ EDF_Scheduler::scheduling_discipline_name (void) RTScheduling::ResourceManager_ptr EDF_Scheduler::create_resource_manager (const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -747,7 +714,6 @@ void EDF_Scheduler::set_scheduling_parameter (PortableServer::Servant &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.h b/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.h index e1a7a27c903..77c52f15dc5 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/EDF_Scheduler.h @@ -51,11 +51,9 @@ public EDF_Scheduling::SchedulingParameterPolicy, { public: - EDF_Scheduling::SchedulingParameter value (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + EDF_Scheduling::SchedulingParameter value (void); - void value (const EDF_Scheduling::SchedulingParameter & value) - ACE_THROW_SPEC ((CORBA::SystemException)); + void value (const EDF_Scheduling::SchedulingParameter & value); private: EDF_Scheduling::SchedulingParameter value_; @@ -77,102 +75,70 @@ public TAO_Local_RefCounted_Object virtual EDF_Scheduling::SchedulingParameterPolicy_ptr create_scheduling_parameter (const EDF_Scheduling::SchedulingParameter & value - ) - ACE_THROW_SPEC ((CORBA::SystemException)); + ); void shutdown (void); virtual void begin_new_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void begin_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void update_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void end_scheduling_segment (const RTScheduling::Current::IdType & guid, - const char * name) - ACE_THROW_SPEC ((CORBA::SystemException)); + const char * name); virtual void end_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, - CORBA::Policy_ptr outer_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr outer_sched_param); - virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri); virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, RTScheduling::Current::IdType_out guid, CORBA::String_out name, CORBA::Policy_out sched_param, - CORBA::Policy_out implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + CORBA::Policy_out implicit_sched_param); - virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void cancel (const RTScheduling::Current::IdType & guid) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void cancel (const RTScheduling::Current::IdType & guid); - virtual CORBA::PolicyList * scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * scheduling_policies (void); - virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies); - virtual CORBA::PolicyList * poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * poa_policies (void); - virtual char * scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual char * scheduling_discipline_name (void); virtual RTScheduling::ResourceManager_ptr create_resource_manager (const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); virtual void set_scheduling_parameter (PortableServer::Servant & resource, const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); Kokyu::DSRT_Dispatcher_Factory<EDF_Scheduler_Traits>::DSRT_Dispatcher_Auto_Ptr kokyu_dispatcher_; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp index 8624fdf23c7..13a67c98bc0 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.cpp @@ -26,9 +26,6 @@ FP_Segment_Sched_Param_Policy::FP_Segment_Sched_Param_Policy ( FP_Scheduling::SegmentSchedulingParameter FP_Segment_Sched_Param_Policy::value ( ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) { return value_; } @@ -37,16 +34,12 @@ void FP_Segment_Sched_Param_Policy::value ( const FP_Scheduling::SegmentSchedulingParameter & value ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) { this->value_ = value; } CORBA::Policy_ptr FP_Segment_Sched_Param_Policy::copy (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { FP_Segment_Sched_Param_Policy* tmp; ACE_NEW_THROW_EX (tmp, FP_Segment_Sched_Param_Policy (*this), @@ -58,7 +51,6 @@ FP_Segment_Sched_Param_Policy::copy (void) void FP_Segment_Sched_Param_Policy::destroy (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { } @@ -127,9 +119,6 @@ FP_Scheduling::SegmentSchedulingParameterPolicy_ptr Fixed_Priority_Scheduler::create_segment_scheduling_parameter ( const FP_Scheduling::SegmentSchedulingParameter & value ) - ACE_THROW_SPEC (( - CORBA::SystemException - )) { FP_Scheduling::SegmentSchedulingParameterPolicy_ptr segment_sched_param_policy; @@ -152,8 +141,6 @@ Fixed_Priority_Scheduler::begin_new_scheduling_segment (const RTScheduling::Curr const char *, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { #ifdef KOKYU_DSRT_LOGGING ACE_DEBUG ((LM_DEBUG, @@ -188,8 +175,6 @@ Fixed_Priority_Scheduler::begin_nested_scheduling_segment (const RTScheduling::C const char *name, CORBA::Policy_ptr sched_param, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { this->begin_new_scheduling_segment (guid, name, @@ -202,8 +187,6 @@ Fixed_Priority_Scheduler::update_scheduling_segment (const RTScheduling::Current const char* name, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { ACE_UNUSED_ARG ((name)); ACE_UNUSED_ARG ((implicit_sched_param)); @@ -233,7 +216,6 @@ Fixed_Priority_Scheduler::update_scheduling_segment (const RTScheduling::Current void Fixed_Priority_Scheduler::end_scheduling_segment (const RTScheduling::Current::IdType &guid, const char *) - ACE_THROW_SPEC ((CORBA::SystemException)) { #ifdef KOKYU_DSRT_LOGGING int int_guid; @@ -250,7 +232,6 @@ void Fixed_Priority_Scheduler::end_nested_scheduling_segment (const RTScheduling::Current::IdType &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { } @@ -258,8 +239,6 @@ Fixed_Priority_Scheduler::end_nested_scheduling_segment (const RTScheduling::Cur void Fixed_Priority_Scheduler::send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS sc_qos; @@ -350,8 +329,6 @@ Fixed_Priority_Scheduler::receive_request (PortableInterceptor::ServerRequestInf CORBA::String_out /*name*/, CORBA::Policy_out sched_param_out, CORBA::Policy_out /*implicit_sched_param_out*/) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS* sc_qos_ptr; @@ -434,14 +411,11 @@ Fixed_Priority_Scheduler::receive_request (PortableInterceptor::ServerRequestInf void Fixed_Priority_Scheduler::send_poll (PortableInterceptor::ClientRequestInfo_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { } void Fixed_Priority_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { RTCORBA::Priority desired_priority = 0; Kokyu::Svc_Ctxt_DSRT_QoS sc_qos; @@ -506,23 +480,18 @@ Fixed_Priority_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr void Fixed_Priority_Scheduler::send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { send_reply (ri); } void Fixed_Priority_Scheduler::send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { send_reply (ri); } void Fixed_Priority_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { RTScheduling::Current::IdType guid; RTCORBA::Priority desired_priority=0; @@ -580,51 +549,42 @@ Fixed_Priority_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ void Fixed_Priority_Scheduler::receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { receive_reply (ri); } void Fixed_Priority_Scheduler::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { receive_reply (ri); } void Fixed_Priority_Scheduler::cancel (const RTScheduling::Current::IdType &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* Fixed_Priority_Scheduler::scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } void Fixed_Priority_Scheduler::scheduling_policies (const CORBA::PolicyList &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* Fixed_Priority_Scheduler::poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } char * Fixed_Priority_Scheduler::scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -632,7 +592,6 @@ Fixed_Priority_Scheduler::scheduling_discipline_name (void) RTScheduling::ResourceManager_ptr Fixed_Priority_Scheduler::create_resource_manager (const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -641,7 +600,6 @@ void Fixed_Priority_Scheduler::set_scheduling_parameter (PortableServer::Servant &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.h b/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.h index 5d9a3d001c8..ea2f0dd541e 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/FP_Scheduler.h @@ -46,23 +46,15 @@ public FP_Scheduling::SegmentSchedulingParameterPolicy, FP_Segment_Sched_Param_Policy (const FP_Segment_Sched_Param_Policy &rhs); FP_Scheduling::SegmentSchedulingParameter value ( - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )); + ); void value ( const FP_Scheduling::SegmentSchedulingParameter & value - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )); + ); - virtual CORBA::Policy_ptr copy () - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::Policy_ptr copy (); - virtual void destroy () - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void destroy (); private: FP_Scheduling::SegmentSchedulingParameter value_; @@ -86,102 +78,68 @@ public TAO_Local_RefCounted_Object virtual FP_Scheduling::SegmentSchedulingParameterPolicy_ptr create_segment_scheduling_parameter ( const FP_Scheduling::SegmentSchedulingParameter & value - ) - ACE_THROW_SPEC (( - CORBA::SystemException - )); + ); virtual void begin_new_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void begin_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void update_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void end_scheduling_segment (const RTScheduling::Current::IdType & guid, - const char * name) - ACE_THROW_SPEC ((CORBA::SystemException)); + const char * name); virtual void end_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, - CORBA::Policy_ptr outer_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr outer_sched_param); - virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri); virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, RTScheduling::Current::IdType_out guid, CORBA::String_out name, CORBA::Policy_out sched_param, - CORBA::Policy_out implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + CORBA::Policy_out implicit_sched_param); - virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void cancel (const RTScheduling::Current::IdType & guid) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void cancel (const RTScheduling::Current::IdType & guid); - virtual CORBA::PolicyList * scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * scheduling_policies (void); - virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies); - virtual CORBA::PolicyList * poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * poa_policies (void); - virtual char * scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual char * scheduling_discipline_name (void); virtual RTScheduling::ResourceManager_ptr create_resource_manager (const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); virtual void set_scheduling_parameter (PortableServer::Servant & resource, const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); private: CORBA::ORB_var orb_; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp index 4d88d2fce9f..cf42475ac28 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.cpp @@ -25,21 +25,18 @@ MIF_Sched_Param_Policy::MIF_Sched_Param_Policy ( MIF_Scheduling::SchedulingParameter MIF_Sched_Param_Policy::value (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { return this->value_; } void MIF_Sched_Param_Policy::value (const MIF_Scheduling::SchedulingParameter& value) - ACE_THROW_SPEC ((CORBA::SystemException)) { this->value_ = value; } CORBA::Policy_ptr MIF_Sched_Param_Policy::copy (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { MIF_Sched_Param_Policy* tmp = 0; ACE_NEW_THROW_EX (tmp, @@ -52,7 +49,6 @@ MIF_Sched_Param_Policy::copy (void) void MIF_Sched_Param_Policy::destroy (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { } @@ -117,7 +113,6 @@ MIF_Scheduler::shutdown (void) MIF_Scheduling::SchedulingParameterPolicy_ptr MIF_Scheduler::create_scheduling_parameter (const MIF_Scheduling::SchedulingParameter & value) - ACE_THROW_SPEC ((CORBA::SystemException)) { MIF_Scheduling::SchedulingParameterPolicy_ptr sched_param_policy; ACE_NEW_THROW_EX (sched_param_policy, @@ -139,8 +134,6 @@ MIF_Scheduler::begin_new_scheduling_segment (const RTScheduling::Current::IdType const char *, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { #ifdef KOKYU_DSRT_LOGGING ACE_DEBUG ((LM_DEBUG, @@ -175,8 +168,6 @@ MIF_Scheduler::begin_nested_scheduling_segment (const RTScheduling::Current::IdT const char *name, CORBA::Policy_ptr sched_param, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { this->begin_new_scheduling_segment (guid, name, @@ -189,8 +180,6 @@ MIF_Scheduler::update_scheduling_segment (const RTScheduling::Current::IdType& g const char* name, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { ACE_UNUSED_ARG ((name)); ACE_UNUSED_ARG ((implicit_sched_param)); @@ -219,7 +208,6 @@ void MIF_Scheduler::end_scheduling_segment ( const RTScheduling::Current::IdType &guid, const char *) - ACE_THROW_SPEC ((CORBA::SystemException)) { #ifdef KOKYU_DSRT_LOGGING int int_guid; @@ -237,7 +225,6 @@ MIF_Scheduler::end_nested_scheduling_segment ( const RTScheduling::Current::IdType &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { } @@ -245,8 +232,6 @@ MIF_Scheduler::end_nested_scheduling_segment ( void MIF_Scheduler::send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS sc_qos; @@ -336,8 +321,6 @@ MIF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, CORBA::String_out /*name*/, CORBA::Policy_out sched_param_out, CORBA::Policy_out /*implicit_sched_param_out*/) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS* sc_qos_ptr; @@ -419,7 +402,6 @@ MIF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, void MIF_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { CORBA::Short importance = 0; Kokyu::Svc_Ctxt_DSRT_QoS sc_qos; @@ -489,30 +471,23 @@ MIF_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) void MIF_Scheduler::send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { send_reply (ri); } void MIF_Scheduler::send_poll (PortableInterceptor::ClientRequestInfo_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { } void MIF_Scheduler::send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { send_reply (ri); } void MIF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { RTScheduling::Current::IdType guid; CORBA::Short importance=0; @@ -569,50 +544,41 @@ MIF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) void MIF_Scheduler::receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { receive_reply (ri); } void MIF_Scheduler::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { receive_reply (ri); } void MIF_Scheduler::cancel (const RTScheduling::Current::IdType &) - ACE_THROW_SPEC ((CORBA::SystemException)) { } CORBA::PolicyList* MIF_Scheduler::scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } void MIF_Scheduler::scheduling_policies (const CORBA::PolicyList &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* MIF_Scheduler::poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } char * MIF_Scheduler::scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -620,7 +586,6 @@ MIF_Scheduler::scheduling_discipline_name (void) RTScheduling::ResourceManager_ptr MIF_Scheduler::create_resource_manager (const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -629,7 +594,6 @@ void MIF_Scheduler::set_scheduling_parameter (PortableServer::Servant &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.h b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.h index 7803ce173f3..cf1829ccb50 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/MIF_Scheduler.h @@ -45,17 +45,13 @@ public MIF_Scheduling::SchedulingParameterPolicy, MIF_Sched_Param_Policy (); MIF_Sched_Param_Policy (const MIF_Sched_Param_Policy &rhs); - MIF_Scheduling::SchedulingParameter value (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + MIF_Scheduling::SchedulingParameter value (void); - void value (const MIF_Scheduling::SchedulingParameter & value) - ACE_THROW_SPEC ((CORBA::SystemException)); + void value (const MIF_Scheduling::SchedulingParameter & value); - virtual CORBA::Policy_ptr copy () - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::Policy_ptr copy (); - virtual void destroy () - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void destroy (); private: MIF_Scheduling::SchedulingParameter value_; @@ -77,102 +73,70 @@ public TAO_Local_RefCounted_Object virtual MIF_Scheduling::SchedulingParameterPolicy_ptr create_scheduling_parameter (const MIF_Scheduling::SchedulingParameter & value - ) - ACE_THROW_SPEC ((CORBA::SystemException)); + ); void shutdown (void); virtual void begin_new_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void begin_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void update_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void end_scheduling_segment (const RTScheduling::Current::IdType & guid, - const char * name) - ACE_THROW_SPEC ((CORBA::SystemException)); + const char * name); virtual void end_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, - CORBA::Policy_ptr outer_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr outer_sched_param); - virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri); virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, RTScheduling::Current::IdType_out guid, CORBA::String_out name, CORBA::Policy_out sched_param, - CORBA::Policy_out implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + CORBA::Policy_out implicit_sched_param); - virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void cancel (const RTScheduling::Current::IdType & guid) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void cancel (const RTScheduling::Current::IdType & guid); - virtual CORBA::PolicyList * scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * scheduling_policies (void); - virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies); - virtual CORBA::PolicyList * poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * poa_policies (void); - virtual char * scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual char * scheduling_discipline_name (void); virtual RTScheduling::ResourceManager_ptr create_resource_manager (const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); virtual void set_scheduling_parameter (PortableServer::Servant & resource, const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); private: CORBA::ORB_var orb_; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp b/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp index ac1d00af137..a1a28cdcb81 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.cpp @@ -25,21 +25,18 @@ MUF_Sched_Param_Policy::MUF_Sched_Param_Policy ( MUF_Scheduling::SchedulingParameter MUF_Sched_Param_Policy::value (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { return this->value_; } void MUF_Sched_Param_Policy::value (const MUF_Scheduling::SchedulingParameter& value) - ACE_THROW_SPEC ((CORBA::SystemException)) { this->value_ = value; } CORBA::Policy_ptr MUF_Sched_Param_Policy::copy (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { MUF_Sched_Param_Policy* tmp; ACE_NEW_THROW_EX (tmp, @@ -52,7 +49,6 @@ MUF_Sched_Param_Policy::copy (void) void MUF_Sched_Param_Policy::destroy (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { } @@ -117,7 +113,6 @@ MUF_Scheduler::shutdown (void) MUF_Scheduling::SchedulingParameterPolicy_ptr MUF_Scheduler::create_scheduling_parameter (const MUF_Scheduling::SchedulingParameter & value) - ACE_THROW_SPEC ((CORBA::SystemException)) { MUF_Scheduling::SchedulingParameterPolicy_ptr sched_param_policy; ACE_NEW_THROW_EX (sched_param_policy, @@ -139,8 +134,6 @@ MUF_Scheduler::begin_new_scheduling_segment (const RTScheduling::Current::IdType const char *, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { #ifdef KOKYU_DSRT_LOGGING ACE_DEBUG ((LM_DEBUG, @@ -179,8 +172,6 @@ MUF_Scheduler::begin_nested_scheduling_segment (const RTScheduling::Current::IdT const char *name, CORBA::Policy_ptr sched_param, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { this->begin_new_scheduling_segment (guid, name, @@ -193,8 +184,6 @@ MUF_Scheduler::update_scheduling_segment (const RTScheduling::Current::IdType& g const char* name, CORBA::Policy_ptr sched_policy, CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)) { ACE_UNUSED_ARG ((name)); ACE_UNUSED_ARG ((implicit_sched_param)); @@ -223,7 +212,6 @@ MUF_Scheduler::update_scheduling_segment (const RTScheduling::Current::IdType& g void MUF_Scheduler::end_scheduling_segment (const RTScheduling::Current::IdType &guid, const char *) - ACE_THROW_SPEC ((CORBA::SystemException)) { #ifdef KOKYU_DSRT_LOGGING int int_guid; @@ -240,15 +228,12 @@ void MUF_Scheduler::end_nested_scheduling_segment (const RTScheduling::Current::IdType &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { } void MUF_Scheduler::send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS sc_qos; @@ -350,8 +335,6 @@ MUF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, CORBA::String_out /*name*/, CORBA::Policy_out sched_param_out, CORBA::Policy_out /*implicit_sched_param_out*/) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { Kokyu::Svc_Ctxt_DSRT_QoS* sc_qos_ptr; @@ -446,14 +429,11 @@ MUF_Scheduler::receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, void MUF_Scheduler::send_poll (PortableInterceptor::ClientRequestInfo_ptr) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { } void MUF_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { Kokyu::Svc_Ctxt_DSRT_QoS sc_qos; @@ -534,23 +514,18 @@ MUF_Scheduler::send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) void MUF_Scheduler::send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { send_reply (ri); } void MUF_Scheduler::send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { send_reply (ri); } void MUF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)) { RTScheduling::Current::IdType guid; @@ -618,51 +593,42 @@ MUF_Scheduler::receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) void MUF_Scheduler::receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { receive_reply (ri); } void MUF_Scheduler::receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)) { receive_reply (ri); } void MUF_Scheduler::cancel (const RTScheduling::Current::IdType &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* MUF_Scheduler::scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } void MUF_Scheduler::scheduling_policies (const CORBA::PolicyList &) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } CORBA::PolicyList* MUF_Scheduler::poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } char * MUF_Scheduler::scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -670,7 +636,6 @@ MUF_Scheduler::scheduling_discipline_name (void) RTScheduling::ResourceManager_ptr MUF_Scheduler::create_resource_manager (const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } @@ -679,7 +644,6 @@ void MUF_Scheduler::set_scheduling_parameter (PortableServer::Servant &, const char *, CORBA::Policy_ptr) - ACE_THROW_SPEC ((CORBA::SystemException)) { throw CORBA::NO_IMPLEMENT (); } diff --git a/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.h b/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.h index 11b15ee9e91..e9b70810567 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/MUF_Scheduler.h @@ -61,17 +61,13 @@ public MUF_Scheduling::SchedulingParameterPolicy, MUF_Sched_Param_Policy (); MUF_Sched_Param_Policy (const MUF_Sched_Param_Policy &rhs); - MUF_Scheduling::SchedulingParameter value (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + MUF_Scheduling::SchedulingParameter value (void); - void value (const MUF_Scheduling::SchedulingParameter & value) - ACE_THROW_SPEC ((CORBA::SystemException)); + void value (const MUF_Scheduling::SchedulingParameter & value); - virtual CORBA::Policy_ptr copy () - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::Policy_ptr copy (); - virtual void destroy () - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void destroy (); private: MUF_Scheduling::SchedulingParameter value_; @@ -93,102 +89,70 @@ public TAO_Local_RefCounted_Object virtual MUF_Scheduling::SchedulingParameterPolicy_ptr create_scheduling_parameter (const MUF_Scheduling::SchedulingParameter & value - ) - ACE_THROW_SPEC ((CORBA::SystemException)); + ); void shutdown (void); virtual void begin_new_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void begin_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void update_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, CORBA::Policy_ptr sched_param, - CORBA::Policy_ptr implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - RTScheduling::Current::UNSUPPORTED_SCHEDULING_DISCIPLINE)); + CORBA::Policy_ptr implicit_sched_param); virtual void end_scheduling_segment (const RTScheduling::Current::IdType & guid, - const char * name) - ACE_THROW_SPEC ((CORBA::SystemException)); + const char * name); virtual void end_nested_scheduling_segment (const RTScheduling::Current::IdType & guid, const char * name, - CORBA::Policy_ptr outer_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr outer_sched_param); - virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_request (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_poll (PortableInterceptor::ClientRequestInfo_ptr ri); virtual void receive_request (PortableInterceptor::ServerRequestInfo_ptr ri, RTScheduling::Current::IdType_out guid, CORBA::String_out name, CORBA::Policy_out sched_param, - CORBA::Policy_out implicit_sched_param) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + CORBA::Policy_out implicit_sched_param); - virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void send_reply (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_exception (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void send_other (PortableInterceptor::ServerRequestInfo_ptr ri); - virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void receive_reply (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_exception (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri) - ACE_THROW_SPEC ((CORBA::SystemException, - PortableInterceptor::ForwardRequest)); + virtual void receive_other (PortableInterceptor::ClientRequestInfo_ptr ri); - virtual void cancel (const RTScheduling::Current::IdType & guid) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void cancel (const RTScheduling::Current::IdType & guid); - virtual CORBA::PolicyList * scheduling_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * scheduling_policies (void); - virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual void scheduling_policies (const CORBA::PolicyList & scheduling_policies); - virtual CORBA::PolicyList * poa_policies (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual CORBA::PolicyList * poa_policies (void); - virtual char * scheduling_discipline_name (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + virtual char * scheduling_discipline_name (void); virtual RTScheduling::ResourceManager_ptr create_resource_manager (const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); virtual void set_scheduling_parameter (PortableServer::Servant & resource, const char * name, - CORBA::Policy_ptr scheduling_parameter) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Policy_ptr scheduling_parameter); private: CORBA::ORB_var orb_; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.cpp index a7bb67610a1..4cb98a72a1f 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.cpp @@ -15,7 +15,6 @@ ACE_RCSID(MT_Server, test_i, "$Id$") CORBA::Long Simple_Server_i::test_method (CORBA::Long exec_duration) - ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_hthread_t thr_handle; ACE_Thread::self (thr_handle); @@ -122,7 +121,6 @@ Simple_Server_i::test_method (CORBA::Long exec_duration) void Simple_Server_i::shutdown (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_DEBUG ((LM_DEBUG, "shutdown request from client\n")); this->orb_->shutdown (0); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.h b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.h index 45c7c4449fc..c1fdefe2374 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/test_i.h @@ -36,11 +36,9 @@ public: // ctor // = The Simple_Server methods. - CORBA::Long test_method (CORBA::Long x) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Long test_method (CORBA::Long x); - void shutdown (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + void shutdown (void); private: CORBA::ORB_var orb_; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.cpp b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.cpp index 6ac6bf963e1..8573e0973ad 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.cpp @@ -15,7 +15,6 @@ ACE_RCSID(MT_Server, test_i, "$Id$") CORBA::Long Simple_Server_i::test_method (CORBA::Long exec_duration) - ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_hthread_t thr_handle; ACE_Thread::self (thr_handle); @@ -122,7 +121,6 @@ Simple_Server_i::test_method (CORBA::Long exec_duration) void Simple_Server_i::shutdown (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_DEBUG ((LM_DEBUG, "shutdown request from client\n")); this->orb_->shutdown (0); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.h b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.h index 45c7c4449fc..c1fdefe2374 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/test_i.h @@ -36,11 +36,9 @@ public: // ctor // = The Simple_Server methods. - CORBA::Long test_method (CORBA::Long x) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Long test_method (CORBA::Long x); - void shutdown (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + void shutdown (void); private: CORBA::ORB_var orb_; diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.cpp b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.cpp index 6ac6bf963e1..8573e0973ad 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.cpp @@ -15,7 +15,6 @@ ACE_RCSID(MT_Server, test_i, "$Id$") CORBA::Long Simple_Server_i::test_method (CORBA::Long exec_duration) - ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_hthread_t thr_handle; ACE_Thread::self (thr_handle); @@ -122,7 +121,6 @@ Simple_Server_i::test_method (CORBA::Long exec_duration) void Simple_Server_i::shutdown (void) - ACE_THROW_SPEC ((CORBA::SystemException)) { ACE_DEBUG ((LM_DEBUG, "shutdown request from client\n")); this->orb_->shutdown (0); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.h b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.h index 45c7c4449fc..c1fdefe2374 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.h +++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/test_i.h @@ -36,11 +36,9 @@ public: // ctor // = The Simple_Server methods. - CORBA::Long test_method (CORBA::Long x) - ACE_THROW_SPEC ((CORBA::SystemException)); + CORBA::Long test_method (CORBA::Long x); - void shutdown (void) - ACE_THROW_SPEC ((CORBA::SystemException)); + void shutdown (void); private: CORBA::ORB_var orb_; |