mirror of
https://github.com/reactos/reactos.git
synced 2024-07-13 16:15:05 +00:00
[NTOS:EX]
- Remove push lock asserts that are prone to race conditions CORE-10267 #resolve svn path=/trunk/; revision=69383
This commit is contained in:
parent
d52803c9e7
commit
2859b9f49c
|
@ -1032,7 +1032,6 @@ ExAcquirePushLockShared(PEX_PUSH_LOCK PushLock)
|
|||
|
||||
/* Sanity checks */
|
||||
ASSERT(PushLock->Locked);
|
||||
ASSERT(PushLock->Waiting || PushLock->Shared > 0);
|
||||
}
|
||||
|
||||
/*++
|
||||
|
@ -1133,7 +1132,6 @@ ExReleasePushLockShared(PEX_PUSH_LOCK PushLock)
|
|||
|
||||
/* Sanity checks */
|
||||
ASSERT(PushLock->Locked);
|
||||
ASSERT(PushLock->Waiting || PushLock->Shared > 0);
|
||||
|
||||
/* Try to clear the pushlock */
|
||||
OldValue.Value = EX_PUSH_LOCK_LOCK | EX_PUSH_LOCK_SHARE_INC;
|
||||
|
@ -1173,7 +1171,6 @@ ExReleasePushLockExclusive(PEX_PUSH_LOCK PushLock)
|
|||
|
||||
/* Sanity checks */
|
||||
ASSERT(PushLock->Locked);
|
||||
ASSERT(PushLock->Waiting || PushLock->Shared == 0);
|
||||
|
||||
/* Unlock the pushlock */
|
||||
OldValue.Value = InterlockedExchangeAddSizeT((PSIZE_T)PushLock,
|
||||
|
|
Loading…
Reference in a new issue