[Development] Using platform-native APIs for terminating QThreads
marc.mutz at kdab.com
Fri Sep 2 23:45:26 CEST 2016
On Friday 02 September 2016 22:35:59 Thiago Macieira wrote:
> However, the documentation from the ABI says that forced unwinds cannot be
> stopped, so you can't swallow the exception even if you wanted to. Are you
> sure that the application crashes when you pthread_exit() when
> QThreadPrivate::start() is noexcept?
Can't swallow doesn't mean can't catch. You can catch it, but you can't not
rethrow. But if you call std::terminate(), the rethrow will never be reached.
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
KDAB - Qt, C++ and OpenGL Experts
More information about the Development