3 //=============================================================================
5 * @file Default_Thread_Lane_Resources_Manager.h
7 * @author Irfan Pyarali
9 // ===================================================================
11 #ifndef TAO_DEFAULT_THREAD_LANE_RESOURCES_MANAGER_H
12 #define TAO_DEFAULT_THREAD_LANE_RESOURCES_MANAGER_H
14 #include /**/ "ace/pre.h"
15 #include "ace/Service_Config.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/Thread_Lane_Resources_Manager.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 * @class TAO_Default_Thread_Lane_Resources_Manager
28 * @brief Simple manager for thread lane resources.
34 class TAO_Export TAO_Default_Thread_Lane_Resources_Manager
35 : public TAO_Thread_Lane_Resources_Manager
39 TAO_Default_Thread_Lane_Resources_Manager (TAO_ORB_Core
&orb_core
);
42 ~TAO_Default_Thread_Lane_Resources_Manager ();
44 /// Finalize resources.
47 /// Open default resources.
48 int open_default_resources ();
51 void shutdown_reactor ();
53 /// Cleanup transports.
54 virtual void close_all_transports ();
56 /// Does @a mprofile belong to us?
57 int is_collocated (const TAO_MProfile
&mprofile
);
61 TAO_Thread_Lane_Resources
&lane_resources ();
63 TAO_Thread_Lane_Resources
&default_lane_resources ();
68 TAO_Default_Thread_Lane_Resources_Manager (TAO_Default_Thread_Lane_Resources_Manager
const &);
69 void operator= (TAO_Default_Thread_Lane_Resources_Manager
const &);
72 /// Default lane resources.
73 TAO_Thread_Lane_Resources
* const lane_resources_
;
77 * @class TAO_Default_Thread_Lane_Resources_Manager_Factory
79 * @brief This class is a factory for managers of thread resources.
84 class TAO_Export TAO_Default_Thread_Lane_Resources_Manager_Factory
85 : public TAO_Thread_Lane_Resources_Manager_Factory
89 virtual ~TAO_Default_Thread_Lane_Resources_Manager_Factory ();
92 TAO_Thread_Lane_Resources_Manager
*create_thread_lane_resources_manager (TAO_ORB_Core
&core
);
95 ACE_STATIC_SVC_DECLARE_EXPORT (TAO
, TAO_Default_Thread_Lane_Resources_Manager_Factory
)
96 ACE_FACTORY_DECLARE (TAO
, TAO_Default_Thread_Lane_Resources_Manager_Factory
)
98 TAO_END_VERSIONED_NAMESPACE_DECL
100 #include /**/ "ace/post.h"
102 #endif /* TAO_DEFAULT_THREAD_LANE_RESOURCES_MANAGER_H */