Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-09-29 06:19:35 +0400
committerChristopher Faylor <me@cgf.cx>2002-09-29 06:19:35 +0400
commitaea1f301fcc9037a222ccf7c2f0f247cdeb2d06e (patch)
tree89921a181cefa4fd5316a2c23ea9624f77b70928 /winsup/cygwin/dcrt0.cc
parentfc5dae1ccab502bdb35a7581a4db8a95cf311c8a (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc1
1 files changed, 1 insertions, 0 deletions
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);