mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
This code used to round down the number of waiters to a multiple of 2. Fine
if there are exactly one or zero waiters, not fine if there are 2 or more. svn path=/trunk/; revision=39130
This commit is contained in:
parent
d68970475c
commit
16a9e8d714
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ KiReleaseGuardedMutex(IN OUT PKGUARDED_MUTEX GuardedMutex)
|
|||
|
||||
/* The mutex will be woken, minus one waiter */
|
||||
NewValue = (OldValue | GM_LOCK_WAITER_WOKEN);
|
||||
NewValue &= ~GM_LOCK_WAITER_INC;
|
||||
NewValue -= GM_LOCK_WAITER_INC;
|
||||
|
||||
/* Remove the Woken bit */
|
||||
if (InterlockedCompareExchange(&GuardedMutex->Count,
|
||||
|
|
Loading…
Reference in a new issue