hillion     01/08/06 05:33:35

  Modified:    sources/org/apache/batik/util RunnableQueue.java
  Log:
  Fixed bugs reported by Thomas.
  
  Revision  Changes    Path
  1.2       +4 -4      xml-batik/sources/org/apache/batik/util/RunnableQueue.java
  
  Index: RunnableQueue.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/util/RunnableQueue.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- RunnableQueue.java        2001/08/02 17:58:00     1.1
  +++ RunnableQueue.java        2001/08/06 12:33:35     1.2
  @@ -16,7 +16,7 @@
    * invocation in a single thread.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Stephane Hillion</a>
  - * @version $Id: RunnableQueue.java,v 1.1 2001/08/02 17:58:00 hillion Exp $
  + * @version $Id: RunnableQueue.java,v 1.2 2001/08/06 12:33:35 hillion Exp $
    */
   public class RunnableQueue implements Runnable {
   
  @@ -53,7 +53,7 @@
       /**
        * The current thread.
        */
  -    protected Thread runnableQueueThread;
  +    protected volatile Thread runnableQueueThread;
   
       /**
        * Creates a new RunnableQueue started in a new thread.
  @@ -80,8 +80,8 @@
                       if (runHandler != null) {
                           runHandler.executionSuspended(this);
                       }
  -                    while (suspended) {
  -                        synchronized (suspendLock) {
  +                    synchronized (suspendLock) {
  +                        while (suspended) {
                               suspendLock.wait();
                           }
                       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to