harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r312647 - /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c
Date Mon, 10 Oct 2005 13:42:13 GMT
Author: geirm
Date: Mon Oct 10 06:42:11 2005
New Revision: 312647

URL: http://svn.apache.org/viewcvs?rev=312647&view=rev
Log:
Awful hack.  This is just to get it to compile.  I
think Dan has a better idea

Modified:
    incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c

Modified: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c?rev=312647&r1=312646&r2=312647&view=diff
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c
(original)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c
Mon Oct 10 06:42:11 2005
@@ -59,10 +59,14 @@
 
 #include <unistd.h>
 #include <signal.h>
+#include <sys/time.h>
 
 #define _REENTRANT
 #include <pthread.h>
+
+#ifndef CONFIG_WINDOWS
 #include <thread.h> /* WATCH OUT!  /usr/include, not application .h */
+#endif
 
 #include "jvmcfg.h"
 #include "classfile.h"
@@ -274,7 +278,15 @@
 
     while(rtrue)
     {
-        yield();
+    	/*
+    	 *  gmj : I think that yield() is solaris only
+    	 */
+
+        #ifdef CONFIG_WINDOWS    
+        	/* do something useful */
+        #else		 
+	        yield();
+	    #endif
     }
 
 /*NOTREACHED*/



Mime
View raw message