From: <jom...@us...> - 2014-09-18 13:40:57
|
Revision: 1803 http://sourceforge.net/p/jason/svn/1803 Author: jomifred Date: 2014-09-18 13:40:54 +0000 (Thu, 18 Sep 2014) Log Message: ----------- use shared scheduler for all agents (see bug reported by Grimaldo) Modified Paths: -------------- trunk/lib/jacamo.jar trunk/src/jason/asSemantics/Agent.java Modified: trunk/lib/jacamo.jar =================================================================== (Binary files differ) Modified: trunk/src/jason/asSemantics/Agent.java =================================================================== --- trunk/src/jason/asSemantics/Agent.java 2014-09-14 17:29:02 UTC (rev 1802) +++ trunk/src/jason/asSemantics/Agent.java 2014-09-18 13:40:54 UTC (rev 1803) @@ -102,7 +102,7 @@ private boolean hasCustomSelOp = true; - private ScheduledExecutorService scheduler = null; + private static ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(20); //null; //private QueryCache qCache = null; private QueryCacheSimple qCache = null; @@ -254,8 +254,8 @@ if (qProfiling != null) qProfiling.show(); - if (scheduler != null) - scheduler.shutdownNow(); + //if (scheduler != null) + // scheduler.shutdownNow(); for (InternalAction ia: internalActions.values()) try { @@ -345,8 +345,8 @@ } public ScheduledExecutorService getScheduler() { - if (scheduler == null) - scheduler = Executors.newScheduledThreadPool(2); + //if (scheduler == null) + // scheduler = Executors.newScheduledThreadPool(2); return scheduler; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |