From aea1f301fcc9037a222ccf7c2f0f247cdeb2d06e Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 29 Sep 2002 02:19:35 +0000 Subject: * cygthread.h (cygthread::terminate): Declare new function. (cygthread::initialized): Change to 'int'. * cygthread.cc (cygthread::stub): Exit thread if initialized < 0. (cygthread::new): Ditto. (cygthread::runner): Ditto. Set initialized using xor to preserve sign. (cygthread::terminate): New function. * dcrt0.cc (do_exit): Call cygthread::terminate. --- winsup/cygwin/dcrt0.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 701fb140c..58fb823a0 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -1024,6 +1024,7 @@ do_exit (int status) window_terminate (); events_terminate (); shared_terminate (); + cygthread::terminate (); minimal_printf ("winpid %d, exit %d", GetCurrentProcessId (), n); myself->exit (n); -- cgit v1.2.3