[Development] Using platform-native APIs for terminating QThreads

Marc Mutz marc.mutz at kdab.com
Fri Sep 2 13:35:12 CEST 2016


On Friday 02 September 2016 12:32:48 Giuseppe D'Angelo wrote:
> On some implementations (notably: glibc), pthread_exit is implemented by
> throwing an exception, because it needs to run the pushed cleanup
> handlers. The net result is that, with my change applied, pthread_exit
> won't make the thread exit but crash the application instead (!).

I thought you can catch that particular exception type, and ignore it (= 
rethrow). It's something with cxa and abi, but I can't find it anymore.

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - Qt, C++ and OpenGL Experts



More information about the Development mailing list