You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by ge...@apache.org on 2005/10/10 15:42:13 UTC

svn commit: r312647 - /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/src/timeslice.c

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*/