mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
KeDelayExecutionThread exported by ntoskrnl with correct calling convention (__stdcall)
svn path=/trunk/; revision=745
This commit is contained in:
parent
766e6a262e
commit
68fbd54f2c
4 changed files with 33 additions and 13 deletions
|
@ -33,9 +33,13 @@ VOID KeAcquireSpinLock(PKSPIN_LOCK SpinLock, PKIRQL OldIrql);
|
|||
VOID KeAcquireSpinLockAtDpcLevel(PKSPIN_LOCK SpinLock);
|
||||
BOOLEAN KeCancelTimer(PKTIMER Timer);
|
||||
VOID KeClearEvent(PKEVENT Event);
|
||||
NTSTATUS KeDelayExecutionThread(KPROCESSOR_MODE WaitMode,
|
||||
BOOLEAN Alertable,
|
||||
PLARGE_INTEGER Internal);
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
KeDelayExecutionThread (
|
||||
KPROCESSOR_MODE WaitMode,
|
||||
BOOLEAN Alertable,
|
||||
PLARGE_INTEGER Internal
|
||||
);
|
||||
BOOLEAN KeDeregisterBugCheckCallback(PKBUGCHECK_CALLBACK_RECORD
|
||||
CallbackRecord);
|
||||
VOID KeEnterCriticalRegion(VOID);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
/*
|
||||
/* $Id: timer.c,v 1.18 1999/10/30 21:24:37 ea Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/ke/timer.c
|
||||
|
@ -184,9 +185,13 @@ NtDelayExecution (
|
|||
}
|
||||
|
||||
|
||||
NTSTATUS KeDelayExecutionThread(KPROCESSOR_MODE WaitMode,
|
||||
BOOLEAN Alertable,
|
||||
PLARGE_INTEGER Interval)
|
||||
NTSTATUS
|
||||
STDCALL
|
||||
KeDelayExecutionThread (
|
||||
KPROCESSOR_MODE WaitMode,
|
||||
BOOLEAN Alertable,
|
||||
PLARGE_INTEGER Interval
|
||||
)
|
||||
/*
|
||||
* FUNCTION: Puts the current thread into an alertable or nonalertable
|
||||
* wait state for a given internal
|
||||
|
@ -197,10 +202,19 @@ NTSTATUS KeDelayExecutionThread(KPROCESSOR_MODE WaitMode,
|
|||
* RETURNS: Status
|
||||
*/
|
||||
{
|
||||
PKTHREAD CurrentThread = KeGetCurrentThread();
|
||||
KeAddThreadTimeout(CurrentThread,Interval);
|
||||
return(KeWaitForSingleObject(&(CurrentThread->Timer),Executive,
|
||||
KernelMode,Alertable,NULL));
|
||||
PKTHREAD CurrentThread = KeGetCurrentThread();
|
||||
KeAddThreadTimeout (
|
||||
CurrentThread,
|
||||
Interval
|
||||
);
|
||||
return (KeWaitForSingleObject (
|
||||
& (CurrentThread->Timer),
|
||||
Executive,
|
||||
KernelMode,
|
||||
Alertable,
|
||||
NULL
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
VOID KeStallExecutionProcessor(ULONG MicroSeconds)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: ntoskrnl.def,v 1.20 1999/10/24 17:52:17 ekohl Exp $
|
||||
; $Id: ntoskrnl.def,v 1.21 1999/10/30 21:24:37 ea Exp $
|
||||
;
|
||||
; reactos/ntoskrnl/ntoskrnl.def
|
||||
;
|
||||
|
@ -103,6 +103,7 @@ IoStopTimer
|
|||
KeBugCheck
|
||||
KeBugCheckEx
|
||||
KeClearEvent
|
||||
KeDelayExecutionThread@12
|
||||
KeFlushIoBuffers
|
||||
KeGetPreviousMode
|
||||
KeInitializeDpc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; $Id: ntoskrnl.edf,v 1.8 1999/10/24 17:52:17 ekohl Exp $
|
||||
; $Id: ntoskrnl.edf,v 1.9 1999/10/30 21:24:37 ea Exp $
|
||||
;
|
||||
; reactos/ntoskrnl/ntoskrnl.def
|
||||
;
|
||||
|
@ -103,6 +103,7 @@ IoStopTimer
|
|||
KeBugCheck
|
||||
KeBugCheckEx
|
||||
KeClearEvent
|
||||
KeDelayExecutionThread=KeDelayExecutionThread@12
|
||||
KeFlushIoBuffers
|
||||
KeGetPreviousMode
|
||||
KeInitializeDpc
|
||||
|
|
Loading…
Reference in a new issue