From: <ha...@us...> - 2006-10-11 03:06:51
|
Revision: 5905 http://svn.sourceforge.net/jmol/?rev=5905&view=rev Author: hansonr Date: 2006-10-10 20:06:46 -0700 (Tue, 10 Oct 2006) Log Message: ----------- script manager race fix -- tested with a queue of 100 echos in a for(){} loop -- no problem. Modified Paths: -------------- trunk/Jmol/src/org/jmol/viewer/ScriptManager.java Modified: trunk/Jmol/src/org/jmol/viewer/ScriptManager.java =================================================================== --- trunk/Jmol/src/org/jmol/viewer/ScriptManager.java 2006-10-11 02:51:51 UTC (rev 5904) +++ trunk/Jmol/src/org/jmol/viewer/ScriptManager.java 2006-10-11 03:06:46 UTC (rev 5905) @@ -134,14 +134,15 @@ private void startScriptQueue() { if (scriptQueueRunning) return; + scriptQueueRunning = true; queueThread = new Thread(new ScriptQueueRunnable()); queueThread.start(); } boolean scriptQueueRunning; + int level; class ScriptQueueRunnable implements Runnable { public void run() { - scriptQueueRunning = true; while (scriptQueue.size() != 0) { runNextScript(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |