From 09663d31bbc2c9784be39e696ce0fa6579319dd4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 6 Oct 2002 01:01:58 +0000 Subject: * cygthread.cc (cygthread::stub): Very minor cleanup. (cygthread::stub): Report overflows in cygwin thread pool when DEBUGGING is on and special environment variable is not set. (cygthread::terminate): Set event only when event actually exists. * exceptions.cc (signal_exit): Set priority of main thread to low before setting current thread to high. --- winsup/cygwin/exceptions.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/exceptions.cc') diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index e15803a52..0c8758de9 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1084,8 +1084,8 @@ signal_exit (int rc) /* We'd like to stop the main thread from executing but when we do that it causes random, inexplicable hangs. So, instead, we set up the priority of this thread really high so that it should do its thing and then exit. */ - (void) SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL); (void) SetThreadPriority (hMainThread, THREAD_PRIORITY_IDLE); + (void) SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL); /* Unlock any main thread mutos since we're executing with prejudice. */ muto *m; @@ -1166,7 +1166,6 @@ int sigframe::call_signal_handler () { return unregister () ? call_signal_handler_now () : 0; - } #define pid_offset (unsigned)(((_pinfo *)NULL)->pid) -- cgit v1.2.3