[Wine-patches] [eterhack] [0014/0021] hal: Implement KeStallExecutionProcessor.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Янв 28 21:10:11 MSK 2009


---
 dlls/hal/hal.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 6fa069a..a21ced4 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -22,6 +22,7 @@
 #include "wine/port.h"
 
 #include <stdarg.h>
+#include <time.h>
 
 #define NONAMELESSUNION
 #define NONAMELESSSTRUCT
@@ -145,7 +146,8 @@ KIRQL WINAPI KeGetCurrentIrql(void)
 
 void WINAPI KeStallExecutionProcessor(ULONG MicroSeconds)
 {
-    FIXME( "(%u) stub!\n", MicroSeconds );
+    struct timespec ts = {0, MicroSeconds * 1000};
+    nanosleep( &ts, NULL );
 }
 
 UCHAR WINAPI READ_PORT_UCHAR(PUCHAR Port)
-- 
1.6.0.2.GIT



Подробная информация о списке рассылки Wine-patches