summaryrefslogtreecommitdiff
path: root/TAO/IIOP/lib/orbobj.hh
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/IIOP/lib/orbobj.hh')
-rw-r--r--TAO/IIOP/lib/orbobj.hh75
1 files changed, 41 insertions, 34 deletions
diff --git a/TAO/IIOP/lib/orbobj.hh b/TAO/IIOP/lib/orbobj.hh
index 960fcac5b8e..c9cb138cc82 100644
--- a/TAO/IIOP/lib/orbobj.hh
+++ b/TAO/IIOP/lib/orbobj.hh
@@ -5,6 +5,10 @@
// create object references from strings. It's also used to
// create strings from object references.
//
+
+#if !defined(ACE_ROA_ORBOBJ_H)
+# define ACE_ROA_ORBOBJ_H
+
typedef class CORBA_ORB *CORBA_ORB_ptr;
void CORBA_release (CORBA_ORB_ptr orb);
CORBA_Boolean CORBA_is_nil (CORBA_ORB_ptr orb);
@@ -27,46 +31,49 @@ CORBA_ORB_init (
//
class _EXPCLASS CORBA_ORB : public IUnknown
{
- public:
- static CORBA_ORB_ptr _duplicate (CORBA_ORB_ptr orb);
- static CORBA_ORB_ptr _nil ();
+public:
+ static CORBA_ORB_ptr _duplicate (CORBA_ORB_ptr orb);
+ static CORBA_ORB_ptr _nil ();
- virtual CORBA_Object_ptr string_to_object (
- CORBA_String str,
- CORBA_Environment &env
- ) = 0;
- virtual CORBA_String object_to_string (
- CORBA_Object_ptr obj,
- CORBA_Environment &env
- ) = 0;
+ virtual CORBA_Object_ptr string_to_object (
+ CORBA_String str,
+ CORBA_Environment &env
+ ) = 0;
+ virtual CORBA_String object_to_string (
+ CORBA_Object_ptr obj,
+ CORBA_Environment &env
+ ) = 0;
- // similar for TypeCodes and Anys ... to/from octet sequences
+ // similar for TypeCodes and Anys ... to/from octet sequences
- void create_list (
- CORBA_Long count,
- CORBA_NVList_ptr &retval
- );
+ void create_list (
+ CORBA_Long count,
+ CORBA_NVList_ptr &retval
+ );
- //
- // Stuff required for COM IUnknown support ... this class is intended
- // to be inherited by others, which will provide some more of the
- // CORBA/COM support. Implementations of this "CORBA_ORB" class must
- // know how to create stringify/destringify their objrefs, as well as
- // how to marshal and unmarshal them ... as well as provide their
- // own QueryInterface.
- //
- ULONG __stdcall AddRef ();
- ULONG __stdcall Release ();
+ //
+ // Stuff required for COM IUnknown support ... this class is intended
+ // to be inherited by others, which will provide some more of the
+ // CORBA/COM support. Implementations of this "CORBA_ORB" class must
+ // know how to create stringify/destringify their objrefs, as well as
+ // how to marshal and unmarshal them ... as well as provide their
+ // own QueryInterface.
+ //
+ ULONG __stdcall AddRef ();
+ ULONG __stdcall Release ();
- protected:
- CORBA_ORB ();
- virtual ~CORBA_ORB ();
+protected:
+ CORBA_ORB ();
+ virtual ~CORBA_ORB ();
- private:
- unsigned _refcount;
+private:
+ ACE_Thread_Mutex lock_;
+ unsigned _refcount;
- // these are not provided
- CORBA_ORB (const CORBA_ORB &);
- CORBA_ORB &operator = (const CORBA_ORB &);
+ // these are not provided
+ CORBA_ORB (const CORBA_ORB &);
+ CORBA_ORB &operator = (const CORBA_ORB &);
};
+#endif
+