From 00c9ea8ae85f7edcbda5a32a1f89ea71abe87f1a Mon Sep 17 00:00:00 2001
From: Abdullah Sowayan
- class FOOBAR_i : public POA_FOOBAR + class FOOBAR_i : public virtual POA_FOOBAR { . . . }; @@ -42,15 +42,33 @@ information on things to notice and common pitfalls. the implementation class is defined as:- class FOOBAR_i : public FOOBAR, - public CORBA::LocalObject + class FOOBAR_i : public virtual FOOBAR, + public virtual CORBA::LocalObject { . . . };-
Reference Counting and Object Reference Lifecycle - +
Reference Counting and Object Reference Lifecycle + (TAO 1.6.5 and above, which followed the IDL->C++ mapping version 1.2) - + TAO 1.6.5 and above has been updated to the 1.2 IDL to C++ mapping. + LocalObject is now refcounted by default. Regular CORBA object + references use reference counting to manage lifecycle of object + references. Local object references also use reference counting + for lifecycle management. In that respect, Local Objects behave + exactly as Regular CORBA objects do, and the memory management + rules that apply to Regular CORBA objects apply to Local Objects +
+ +If, for some reason, you would like to preserve the originial
+ behavior (i.e., disabling reference counting) then override
+ _add_ref ()
and _remove_ref
+ ()
and implement them as no-op operations.
Reference Counting and Object Reference Lifecycle (Prior to + TAO 1.6.5, which followed the IDL->C++ mapping version 1.1) - Regular CORBA object references use reference counting to manage lifecycle of object references. Local object references may also use reference counting for lifecycle @@ -82,8 +100,8 @@ information on things to notice and common pitfalls.
TAO_Local_Ref_Counted_Object ()
as:
- class FOOBAR_i : public FOOBAR, - public TAO_Local_Ref_Counted_Object + class FOOBAR_i : public virtual FOOBAR, + public virtual TAO_Local_Ref_Counted_Object { . . . }; @@ -92,13 +110,12 @@ information on things to notice and common pitfalls. if you wish to use reference counting. However, this is not portable and should be used with care by the applications. -
-Last modified: Wed Apr 26 02:21:35 Central Daylight Time 2000 +Last modified: Tue Jun 3 15:19:18 UTC 2008