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 virtual void push_nocopy (TAO_EC_ProxyPushSupplier* proxy,
00058 RtecEventComm::PushConsumer_ptr consumer,
00059 RtecEventComm::EventSet& event,
00060 TAO_EC_QOS_Info& qos_info);
00061
00062 private:
00063
00064 ACE_Thread_Manager thread_manager_;
00065
00066
00067 int nthreads_;
00068
00069
00070
00071 int thread_creation_flags_;
00072
00073
00074 int thread_priority_;
00075
00076
00077
00078 int force_activate_;
00079
00080
00081 TAO_EC_Dispatching_Task task_;
00082
00083
00084 TAO_SYNCH_MUTEX lock_;
00085
00086
00087 int active_;
00088
00089
00090 TAO_EC_Queue_Full_Service_Object* queue_full_service_object_;
00091 };
00092
00093 TAO_END_VERSIONED_NAMESPACE_DECL
00094
00095 #include "ace/post.h"
00096 #endif