ds-win32 uses __try/__finally (for SEH) or
pthread_setspecific()/pthread_getspecific() (for C cleanup) to ensure
they're always called.
> - Original Message -
> From: "Keri Harris"
> To:
> Sent: Thursday, March 19, 2015 3:27 PM
> Subject: [Mingw-w6
I've noticed some unexpected behaviour with winpthreads which I believe
is a bug. Thread-cancellation cleanup handlers are not called when a
thread terminates due to a call to pthread_exit(). This is unexpected;
the pthread_cleanup_push(), pthread_cleanup_pop() specification [1]
mentions: