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>2005-03-03 19:53:52 +0300
committerChristopher Faylor <me@cgf.cx>2005-03-03 19:53:52 +0300
commit33aca5632219e9ca6ca44b6257c53618249bf3c3 (patch)
treeaf404d430b52fed9ec186e9f623c231a93e7bfdf /winsup/cygwin/cygthread.cc
parent7486d0c0192a9b2a3c90f3dde3e65d647f6d118c (diff)
* cygthread.cc (cygthread::detach): Use a slightly higher priority when waiting
for thread signalling.
Diffstat (limited to 'winsup/cygwin/cygthread.cc')
-rw-r--r--winsup/cygwin/cygthread.cc2
1 files changed, 1 insertions, 1 deletions
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;