Commit 6345787c authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ntoskrnl.exe: Implement KeResetEvent().

parent 469c2fd4
...@@ -2430,16 +2430,6 @@ ULONG WINAPI KeQueryTimeIncrement(void) ...@@ -2430,16 +2430,6 @@ ULONG WINAPI KeQueryTimeIncrement(void)
/*********************************************************************** /***********************************************************************
* KeResetEvent (NTOSKRNL.EXE.@)
*/
LONG WINAPI KeResetEvent( PRKEVENT Event )
{
FIXME("(%p): stub\n", Event);
return 0;
}
/***********************************************************************
* KeSetPriorityThread (NTOSKRNL.EXE.@) * KeSetPriorityThread (NTOSKRNL.EXE.@)
*/ */
KPRIORITY WINAPI KeSetPriorityThread( PKTHREAD Thread, KPRIORITY Priority ) KPRIORITY WINAPI KeSetPriorityThread( PKTHREAD Thread, KPRIORITY Priority )
......
...@@ -144,3 +144,22 @@ LONG WINAPI KeSetEvent( PRKEVENT event, KPRIORITY increment, BOOLEAN wait ) ...@@ -144,3 +144,22 @@ LONG WINAPI KeSetEvent( PRKEVENT event, KPRIORITY increment, BOOLEAN wait )
return ret; return ret;
} }
/***********************************************************************
* KeResetEvent (NTOSKRNL.EXE.@)
*/
LONG WINAPI KeResetEvent( PRKEVENT event )
{
HANDLE handle = event->Header.WaitListHead.Blink;
LONG ret;
TRACE("event %p.\n", event);
EnterCriticalSection( &sync_cs );
ret = InterlockedExchange( &event->Header.SignalState, FALSE );
if (handle)
ResetEvent( handle );
LeaveCriticalSection( &sync_cs );
return ret;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment