diff options
Diffstat (limited to 'winsup/cygwin/sync.h')
-rw-r--r-- | winsup/cygwin/sync.h | 7 |
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 () { |