[ros-diffs] [fireball] 34006: - Wake up a pushlock only if it wasn't waking already, not vice versa (was a typo in ExfAcquirePushLockExclusive, but was done correctly in ExfAcquirePushLockShared).

fireball at svn.reactos.org fireball at svn.reactos.org
Wed Jun 18 11:53:39 CEST 2008


Author: fireball
Date: Wed Jun 18 04:53:38 2008
New Revision: 34006

URL: http://svn.reactos.org/svn/reactos?rev=34006&view=rev
Log:
- Wake up a pushlock only if it wasn't waking already, not vice versa (was a typo in ExfAcquirePushLockExclusive, but was done correctly in ExfAcquirePushLockShared).

Modified:
    trunk/reactos/ntoskrnl/ex/pushlock.c

Modified: trunk/reactos/ntoskrnl/ex/pushlock.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/pushlock.c?rev=34006&r1=34005&r2=34006&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ex/pushlock.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/pushlock.c [iso-8859-1] Wed Jun 18 04:53:38 2008
@@ -514,7 +514,7 @@
                                   PtrToUlong(WaitBlock);
 
                 /* Check if the pushlock was already waking */
-                if (OldValue.Waking) NeedWake = TRUE;
+                if (!OldValue.Waking) NeedWake = TRUE;
             }
             else
             {



More information about the Ros-diffs mailing list