<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div class="h5"><br>
</div></div>That's what I was wondering about.<br>
<br>
I'm not in the habit of doing long-running things in a destructor. I<br>
worry that things may get hung up somehow with multiple threads in<br>
flight.</blockquote><div><br></div><div>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.</div>

<div><br></div><div>The only reason to add onShutdown() or similar is for the possibility of calling virtual functions inside that function.</div><div><br></div><div>Josh </div></div>