Re: [Mingw-w64-public] winpthreads cleanup handlers not called afterpthread_exit()

2015-03-21 Thread Keri Harris
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

[Mingw-w64-public] winpthreads cleanup handlers not called after pthread_exit()

2015-03-19 Thread Keri Harris
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: