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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-05 07:52:52 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-05 07:52:52 +0300
commitef1bf288df0702b81e617227346e110888d4480f (patch)
tree709d53b79ad569eedd8ab28a6173631d507be5d2 /winsup
parentd2637322384d97148007decb03d4af6f87159752 (diff)
* pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/pinfo.cc3
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c6851787e..0a78372fc 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2002-11-04 Christopher Faylor <cgf@redhat.com>
+ * pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.
+
+2002-11-04 Christopher Faylor <cgf@redhat.com>
+
* pinfo.cc (_pinfo::commune_send): Set priority low when sleeping,
waiting for commune completion so that we don't spin waiting for lower
priority processes.
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index f47e3bd2d..d4764bced 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -369,7 +369,8 @@ _pinfo::commune_send (DWORD code)
break;
else
{
- DWORD prio = SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE);
+ DWORD prio = GetThreadPriority (GetCurrentThread ());
+ SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_IDLE);
Sleep (0);
SetThreadPriority (GetCurrentThread (), prio);
}