Re: [ros-users] questions about nodelets

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
+ (text/html)
このメッセージを削除
このメッセージに返信
著者: User discussions
日付:  
To: User discussions
題目: Re: [ros-users] questions about nodelets
>
>
> 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.

Josh