From 1d04c4c6c36f307f79a5617bc62e1a766ce01355 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 26 Nov 2011 02:35:49 +0000 Subject: * exceptions.cc (sigpacket::process): Move signal_exit processing into... (_cygtls::signal_exit): ...here. Close my_readsig and comment on why. * pinfo.cc (pinfo::exit): Move sigproc_terminate earlier. Set exiting flag in lock_process. * sigproc.cc (my_readsig): Make global. * sync.cc (muto::exiting_thread): Delete. (muto::acquire): Delete #if 0'ed code. * sync.h (muto::exiting_thread): Delete. (set_exiting_thread): Ditto. (lock_process::lock_process): Don't worry about setting the exiting thread since it had no meaning. --- winsup/cygwin/sync.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'winsup/cygwin/sync.h') diff --git a/winsup/cygwin/sync.h b/winsup/cygwin/sync.h index 5d66b97af..2215599c8 100644 --- a/winsup/cygwin/sync.h +++ b/winsup/cygwin/sync.h @@ -17,7 +17,6 @@ class muto public: const char *name; private: - static DWORD exiting_thread; LONG sync; /* Used to serialize access to this class. */ LONG waiters; /* Number of threads waiting for lock. */ HANDLE bruteforce; /* event handle used to control waiting for lock. */ @@ -39,7 +38,6 @@ public: void upforgrabs () {tls = this;} // just set to an invalid address void grab () __attribute__ ((regparm (1))); operator int () const {return !!name;} - static void set_exiting_thread () {exiting_thread = GetCurrentThreadId ();} }; class lock_process @@ -54,10 +52,7 @@ public: locker.acquire (); skip_unlock = exiting; if (exiting && exit_state < ES_PROCESS_LOCKED) - { - exit_state = ES_PROCESS_LOCKED; - muto::set_exiting_thread (); - } + exit_state = ES_PROCESS_LOCKED; } ~lock_process () { -- cgit v1.2.3