Thread - stopThread

Is there a situation where not calling stopThread before destruction is acceptable? I think probably not and maybe it’d be good to assert if the Thread destructor is called and stopThread hasn’t been called with a suitable timeout whether or not the thread is still running…

Certainly we use it all over the place and pretty much it’s bug if stopThread wasn’t called manually with a suitable timeout.

Can anyone think of a situation where it’d be wrong to assert on failure to call stopThread?

1 Like