[ros-users] questions about nodelets

Jack O'Quin jack.oquin at gmail.com
Tue Nov 9 23:49:29 UTC 2010

On Tue, Nov 9, 2010 at 5:28 PM, Josh Faust <jfaust at willowgarage.com> wrote:

>> I'm not in the habit of doing long-running things in a destructor. I
>> worry that things may get hung up somehow with multiple threads in
>> flight.
> That's no different than an onShutdown() method though.  Either way you need
> to join the thread you started, otherwise you're not properly cleaning up
> after yourself.

True. The destructor still needs to make sure all resources get released.

I learned C++ many years ago, when many things didn't work as well as
they do now. I never actually *liked* the language, and I would never
claim that all my old habits actually make *sense*.  :-)


More information about the ros-users mailing list