[ros-users] questions about nodelets

Josh Faust jfaust at willowgarage.com
Tue Nov 9 23:28:36 UTC 2010

> That's what I was wondering about.
> 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.

The only reason to add onShutdown() or similar is for the possibility of
calling virtual functions inside that function.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20101109/8a751149/attachment-0003.html>

More information about the ros-users mailing list