From 33aca5632219e9ca6ca44b6257c53618249bf3c3 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 3 Mar 2005 16:53:52 +0000 Subject: [PATCH] * cygthread.cc (cygthread::detach): Use a slightly higher priority when waiting for thread signalling. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/cygthread.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0a93ec8be..0ddf15893 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-03-03 Christopher Faylor + + * cygthread.cc (cygthread::detach): Use a slightly higher priority when + waiting for thread signalling. + 2005-03-02 Christopher Faylor * autoload.cc (std_dll_init): Save and restore fpu control register diff --git a/winsup/cygwin/cygthread.cc b/winsup/cygwin/cygthread.cc index 93b5cffcd..9cdeac84b 100644 --- a/winsup/cygwin/cygthread.cc +++ b/winsup/cygwin/cygthread.cc @@ -316,7 +316,7 @@ cygthread::detach (HANDLE sigwait) /* Lower our priority and give priority to the read thread */ HANDLE hth = GetCurrentThread (); LONG prio = GetThreadPriority (hth); - (void) ::SetThreadPriority (hth, THREAD_PRIORITY_IDLE); + (void) ::SetThreadPriority (hth, THREAD_PRIORITY_BELOW_NORMAL); HANDLE w4[2]; unsigned n = 2;