OSDN Git Service

* pinfo.cc (_pinfo::commune_send): Fix thinko in previous checkin.
authorcgf <cgf>
Tue, 5 Nov 2002 04:52:52 +0000 (04:52 +0000)
committercgf <cgf>
Tue, 5 Nov 2002 04:52:52 +0000 (04:52 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index c685178..0a78372 100644 (file)
@@ -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.
index f47e3bd..d4764bc 100644 (file)
@@ -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);
       }