Revision: 4775
          http://sourceforge.net/p/vexi/code/4775
Author:   mkpg2
Date:     2015-03-03 01:36:32 +0000 (Tue, 03 Mar 2015)
Log Message:
-----------
Make scheduler inner loop execution overrideable (so things like timing slices 
can be done).

Modified Paths:
--------------
    branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Scheduler.java

Modified: 
branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Scheduler.java
===================================================================
--- branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Scheduler.java 
2015-03-03 01:07:38 UTC (rev 4774)
+++ branches/vexi3/org.vexi-library.js/src/main/java/org/ibex/js/Scheduler.java 
2015-03-03 01:36:32 UTC (rev 4775)
@@ -98,7 +98,7 @@
 
 
     // Default Implementation 
//////////////////////////////////////////////////////
-
+    protected void run(Callable c) throws Exception{ c.run(null); }
     
     public Exception defaultRun() {
         try {
@@ -110,8 +110,9 @@
                     }
                     current = (Callable)runnable.remove(true);
                     synchronized (this) {
+                       
                         //Log.debug(Scheduler.class, "performing " + current);
-                       current.run(null);                        
+                       run(current);                        
                     }
                     renderAll();
                 /*} catch (Stop e){

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to