[292] in Pthreads mailing list archive
pthread_cancel() and c++ destructors
daemon@ATHENA.MIT.EDU (William S. Gribble)
Wed Mar 13 16:54:13 1996
From: "William S. Gribble" <grib@cs.utexas.edu>
Date: Wed, 13 Mar 1996 15:37:46 -0600 (CST)
To: pthreads@MIT.EDU
I notice that pthread_cancel() is not in the beta4_1 release of MIT
pthreads. Since I don't have the POSIX document and I can't test the
routine, maybe someone out there can tell me what happens to local
variables in the canceled thread: are their destructors called? What
about mutexes that are held by the canceled thread? (btw, I know about
using a ``token holder'' or locker class to handle unexpected exits,
I'm just wondering what happens if they aren't used)
Thanks,
Bill Gribble