[omniORB] Accessing methods after join?
Rosimildo da Silva
rdasilva@connecttel.com
Wed, 19 Sep 2001 20:01:54 -0500
From: "Mark Johnson" <mark.johnson@onfiber.com>
To: "OmniOrb Mailing List (E-mail)" <omniorb-list@uk.research.att.com>
Sent: Wednesday, September 19, 2001 10:45 AM
Subject: [omniORB] Accessing methods after join?
> If I derive from omni_thread can I access my thread class's methods after
a
> join has returned? Also, do I need to delete the object after a join?
>
> example:
>
> MyThread * thread = new MyThread; // starts undetached
> thread->join( (void**)&rv );
> std::cout << thread->getName() << " has finished. " << std::endl; //
> don't think this will work
> delete thread; // ??
The "join" method in the omniThread library deletes the instance. So,
you cannot use the object after that call.
Rosimildo.