summaryrefslogtreecommitdiff
path: root/ACE/TAO/tao/PortableServer/Active_Object_Map_Entry.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/tao/PortableServer/Active_Object_Map_Entry.h')
-rw-r--r--ACE/TAO/tao/PortableServer/Active_Object_Map_Entry.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/ACE/TAO/tao/PortableServer/Active_Object_Map_Entry.h b/ACE/TAO/tao/PortableServer/Active_Object_Map_Entry.h
new file mode 100644
index 00000000000..75d2a3d2c40
--- /dev/null
+++ b/ACE/TAO/tao/PortableServer/Active_Object_Map_Entry.h
@@ -0,0 +1,65 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Active_Object_Map_Entry.h
+ *
+ * $Id$
+ *
+ * @author Irfan Pyarali
+ */
+//=============================================================================
+
+
+#ifndef TAO_ACTIVE_OBJECT_MAP_ENTRY_H
+#define TAO_ACTIVE_OBJECT_MAP_ENTRY_H
+
+#include /**/ "ace/pre.h"
+
+#include "tao/PortableServer/PS_ForwardC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+/**
+ * @struct TAO_Active_Object_Map_Entry
+ *
+ * @brief Value field of the active object map.
+ *
+ * We need a mapping from and to all of the following fields:
+ * user_id, system_id, and servant. Therefore, we keep
+ * all the fields together in the map.
+ */
+struct TAO_Active_Object_Map_Entry
+{
+ /// Default constructor.
+ TAO_Active_Object_Map_Entry (void);
+
+ /// User id.
+ PortableServer::ObjectId user_id_;
+
+ /// System id.
+ PortableServer::ObjectId system_id_;
+
+ /// Servant.
+ PortableServer::Servant servant_;
+
+ /// Reference count on outstanding requests on this servant.
+ CORBA::UShort reference_count_;
+
+ /// Has this servant been deactivated already?
+ CORBA::Boolean deactivated_;
+
+ /// Priority of this servant.
+ CORBA::Short priority_;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_ACTIVE_OBJECT_MAP_ENTRY_H */