[omniORB] clients, _duplicate() & thread safety
David Riddoch
djr@uk.research.att.com
Wed, 2 Feb 2000 16:41:58 +0000 (GMT)
On Wed, 2 Feb 2000, Nick Brook wrote:
> Hi all. I have a quick question. Basically I have a factory object with
> creates child objects (in the same process). All these objects need to
> talk to a remote object (in another address space). Currently I make the
> factory object hold an object reference to this remote object, and the
> child objects make calls to this object via the object reference in the
> factory class (i.e they all use the same object reference). Is there any
> difference between doing this and giving each client object a
> _duplicate() of the object reference?
No difference (modulo ref counts) as long as your factory object is
guarenteed to live at least as long as any of the clients.
> And is the proxy object
> thread-safe?
Yes.
Regards,
David