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>2011-11-26 06:35:49 +0400
committerChristopher Faylor <me@cgf.cx>2011-11-26 06:35:49 +0400
commit1d04c4c6c36f307f79a5617bc62e1a766ce01355 (patch)
treeed3dfe5a96d9fe9353e5eb1927df7aa8f3a20a1e /winsup/cygwin/sync.h
parent505bce274fe261526833f77f7bf24b33542da151 (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r--winsup/cygwin/sync.h7
1 files changed, 1 insertions, 6 deletions
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 ()
{