diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-05 04:52:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-05 04:52:52 +0000 |
commit | ef1bf288df0702b81e617227346e110888d4480f (patch) | |
tree | 709d53b79ad569eedd8ab28a6173631d507be5d2 | |
parent | d2637322384d97148007decb03d4af6f87159752 (diff) | |
download | newlib-ef1bf288df0702b81e617227346e110888d4480f.zip newlib-ef1bf288df0702b81e617227346e110888d4480f.tar.gz newlib-ef1bf288df0702b81e617227346e110888d4480f.tar.bz2 |
* pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index c685178..0a78372 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 f47e3bd..d4764bc 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); } |