mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 05:51:26 +08:00
[LIBS] Use KeClearEvent instead of KeResetEvent where the previous state is not needed.
This commit is contained in:
@@ -81,7 +81,7 @@ BOOLEAN ChewCreate(VOID (*Worker)(PVOID), PVOID WorkerContext)
|
||||
Item->Worker = Worker;
|
||||
Item->WorkerContext = WorkerContext;
|
||||
ExInterlockedInsertTailList(&WorkQueue, &Item->Entry, &WorkQueueLock);
|
||||
KeResetEvent(&WorkQueueClear);
|
||||
KeClearEvent(&WorkQueueClear);
|
||||
IoQueueWorkItem(Item->WorkItem, ChewWorkItem, DelayedWorkQueue, Item);
|
||||
|
||||
return TRUE;
|
||||
|
||||
@@ -4451,7 +4451,7 @@ RxCommonWrite(
|
||||
1,
|
||||
&RxStrucSupSpinLock) == 0)
|
||||
{
|
||||
KeResetEvent(Fcb->NonPaged->OutstandingAsyncEvent);
|
||||
KeClearEvent(Fcb->NonPaged->OutstandingAsyncEvent);
|
||||
}
|
||||
|
||||
UnwindOutstandingAsync = TRUE;
|
||||
|
||||
@@ -7894,7 +7894,7 @@ RxScavengerTimerRoutine(
|
||||
{
|
||||
/* Done */
|
||||
Scavenger->State = RDBSS_SCAVENGER_ACTIVE;
|
||||
KeResetEvent(&Scavenger->ScavengeEvent);
|
||||
KeClearEvent(&Scavenger->ScavengeEvent);
|
||||
|
||||
/* Scavenger the entries */
|
||||
RxReleaseScavengerMutex();
|
||||
@@ -7982,7 +7982,7 @@ RxSpinUpRequestsDispatcher(
|
||||
{
|
||||
ListEntry = &RxDispatcher->SpinUpRequests;
|
||||
}
|
||||
KeResetEvent(&RxDispatcher->SpinUpRequestsEvent);
|
||||
KeClearEvent(&RxDispatcher->SpinUpRequestsEvent);
|
||||
KeReleaseSpinLock(&RxDispatcher->SpinUpRequestsLock, OldIrql);
|
||||
|
||||
while (ListEntry != &RxDispatcher->SpinUpRequests)
|
||||
|
||||
Reference in New Issue
Block a user