blob: 9237dd5161a4be87730c86b85718e4715ec33f3b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
//=============================================================================
/**
* @file Thread_Lane_Resources.h
*
* $Id$
*
* @author Irfan Pyarali
*/
// ===================================================================
#ifndef TAO_THREAD_LANE_RESOURCES_H
#define TAO_THREAD_LANE_RESOURCES_H
#include "ace/pre.h"
#include "tao/orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/corbafwd.h"
class TAO_ORB_Core;
class TAO_Acceptor_Registry;
class TAO_Transport_Cache_Manager;
class TAO_Leader_Follower;
/**
* @class TAO_Thread_Lane_Resources
*
* @brief Class representing a thread lane's resources.
*
* \nosubgrouping
*
**/
class TAO_Export TAO_Thread_Lane_Resources
{
public:
/// Constructor.
TAO_Thread_Lane_Resources (TAO_ORB_Core &orb_core);
/// Destructor.
~TAO_Thread_Lane_Resources (void);
/// Checks if the acceptor registry has been created.
int has_acceptor_registry_been_created (void) const;
/// Opens the acceptor registry.
int open_acceptor_registry (CORBA::Environment &ACE_TRY_ENV);
/// Finalize resources.
void finalize (void);
/// Get the acceptor registry.
TAO_Acceptor_Registry &acceptor_registry (void);
/// Get the transport cache.
TAO_Transport_Cache_Manager &transport_cache (void);
/// Get the leader/followers management class for this lane.
TAO_Leader_Follower &leader_follower (void);
private:
/// ORB_Core related to this thread lane.
TAO_ORB_Core &orb_core_;
/// The registry which maintains a list of acceptor factories for
/// each loaded protocol.
TAO_Acceptor_Registry *acceptor_registry_;
/// Transport cache.
TAO_Transport_Cache_Manager *transport_cache_;
/// The leader/followers management class for this lane.
TAO_Leader_Follower *leader_follower_;
/// Synchronization.
TAO_SYNCH_MUTEX lock_;
};
#if defined (__ACE_INLINE__)
# include "tao/Thread_Lane_Resources.i"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* TAO_THREAD_LANE_RESOURCES_H */
|