diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:11 +0000 |
commit | 8008dd09ccf88d4edef237a184a698cac42f2952 (patch) | |
tree | da50d054f9c761c3f6a5923f6979e93306c56d68 /TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp | |
parent | 13d6e89af439164c0ade48e6f5c3e9b3f971e8c9 (diff) | |
download | ATCD-8008dd09ccf88d4edef237a184a698cac42f2952.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp deleted file mode 100644 index 0bf92510d54..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Priority_Scheduling.cpp +++ /dev/null @@ -1,100 +0,0 @@ -// $Id$ - -#include "orbsvcs/Event/EC_Priority_Scheduling.h" -#include "orbsvcs/Event/EC_QOS_Info.h" -#include "orbsvcs/Event/EC_ProxyConsumer.h" -#include "orbsvcs/Event/EC_ProxySupplier.h" -#include "orbsvcs/Event/EC_Supplier_Filter.h" - -#if ! defined (__ACE_INLINE__) -#include "orbsvcs/Event/EC_Priority_Scheduling.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(Event, EC_Priority_Scheduling, "$Id$") - -TAO_BEGIN_VERSIONED_NAMESPACE_DECL - -TAO_EC_Priority_Scheduling::~TAO_EC_Priority_Scheduling (void) -{ -} - -void -TAO_EC_Priority_Scheduling::add_proxy_supplier_dependencies ( - TAO_EC_ProxyPushSupplier *supplier, - TAO_EC_ProxyPushConsumer *consumer - ACE_ENV_ARG_DECL) -{ - ACE_DEBUG ((LM_DEBUG, "add_proxy_supplier_dependencies - %x %x\n", - supplier, consumer)); - const RtecEventChannelAdmin::SupplierQOS& qos = - consumer->publications (); - for (CORBA::ULong i = 0; i < qos.publications.length (); ++i) - { - const RtecEventComm::EventHeader &header = - qos.publications[i].event.header; - TAO_EC_QOS_Info qos_info; - qos_info.rt_info = qos.publications[i].dependency_info.rt_info; - - RtecScheduler::OS_Priority os_priority; - RtecScheduler::Preemption_Subpriority_t p_subpriority; - RtecScheduler::Preemption_Priority_t p_priority; - this->scheduler_->priority (qos_info.rt_info, - os_priority, - p_subpriority, - p_priority - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - qos_info.preemption_priority = p_priority; - - supplier->add_dependencies (header, qos_info ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - } -} - -void -TAO_EC_Priority_Scheduling::schedule_event (const RtecEventComm::EventSet &event, - TAO_EC_ProxyPushConsumer *consumer, - TAO_EC_Supplier_Filter *filter - ACE_ENV_ARG_DECL) -{ - RtecEventChannelAdmin::SupplierQOS qos = - consumer->publications (); - - for (CORBA::ULong j = 0; j != event.length (); ++j) - { - const RtecEventComm::Event& e = event[j]; - RtecEventComm::Event* buffer = - const_cast<RtecEventComm::Event*> (&e); - RtecEventComm::EventSet single_event (1, 1, buffer, 0); - - TAO_EC_QOS_Info qos_info; - - for (CORBA::ULong i = 0; i != qos.publications.length (); ++i) - { - const RtecEventComm::EventHeader &qos_header = - qos.publications[i].event.header; - - if (TAO_EC_Filter::matches (e.header, qos_header) == 0) - continue; - - qos_info.rt_info = qos.publications[i].dependency_info.rt_info; - - RtecScheduler::OS_Priority os_priority; - RtecScheduler::Preemption_Subpriority_t p_subpriority; - RtecScheduler::Preemption_Priority_t p_priority; - this->scheduler_->priority (qos_info.rt_info, - os_priority, - p_subpriority, - p_priority - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - qos_info.preemption_priority = p_priority; - } - - filter->push_scheduled_event (single_event, qos_info - ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - } -} - -TAO_END_VERSIONED_NAMESPACE_DECL |