The current behaviour of the the vislib thread is closing the handle on windows/detaching on Linux. This has the effect that the thread continues running until the runnable exits. However, there is no possiblity to re-gain control over it.
The STL thread on the other hand does not detach in the dtor, but checks whether the thread was detached and explodes the programme if not. This way, the implementation ensures that one cannot have running threads that cannot be controlled by an object.
Should we change the implementation? I am really not sure...
Log in to post a comment.