00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TAO_EC_MT_DISPATCHING_H
00017 #define TAO_EC_MT_DISPATCHING_H
00018 #include "ace/pre.h"
00019
00020 #include "orbsvcs/Event/EC_Dispatching.h"
00021
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif
00025
00026 #include "orbsvcs/Event/EC_Dispatching_Task.h"
00027
00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 class TAO_RTEvent_Serv_Export TAO_EC_MT_Dispatching : public TAO_EC_Dispatching
00040 {
00041 public:
00042
00043
00044 TAO_EC_MT_Dispatching (int nthreads,
00045 int thread_creation_flags,
00046 int thread_priority,
00047 int force_activate,
00048 TAO_EC_Queue_Full_Service_Object* queue_full_service_object_name);
00049
00050
00051 virtual void activate (void);
00052 virtual void shutdown (void);
00053 virtual void push (TAO_EC_ProxyPushSupplier* proxy,
00054 RtecEventComm::PushConsumer_ptr consumer,
00055 const RtecEventComm::EventSet& event,
00056 TAO_EC_QOS_Info& qos_info
00057 ACE_ENV_ARG_DECL);
00058 virtual void push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
00059 RtecEventComm::PushConsumer_ptr consumer,
00060 RtecEventComm::EventSet& event,
00061 TAO_EC_QOS_Info& qos_info
00062 ACE_ENV_ARG_DECL);
00063
00064 private:
00065
00066 ACE_Thread_Manager thread_manager_;
00067
00068
00069 int nthreads_;
00070
00071
00072
00073 int thread_creation_flags_;
00074
00075
00076 int thread_priority_;
00077
00078
00079
00080 int force_activate_;
00081
00082
00083 TAO_EC_Dispatching_Task task_;
00084
00085
00086 TAO_SYNCH_MUTEX lock_;
00087
00088
00089 int active_;
00090
00091
00092 TAO_EC_Queue_Full_Service_Object* queue_full_service_object_;
00093 };
00094
00095 TAO_END_VERSIONED_NAMESPACE_DECL
00096
00097 #include "ace/post.h"
00098 #endif