You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by br...@apache.org on 2003/08/31 11:31:55 UTC

cvs commit: cocoon-2.1/lib/core util.concurrent-1.3.2-patched.jar

bruno       2003/08/31 02:31:55

  Added:       lib/core util.concurrent-1.3.2-patched.jar
  Log:
  Same as 1.3.2 version, but with the following method patched in the PooledExecutor class:
  
  protected synchronized void workerDone(Worker w) {
    threads_.remove(w);
    if (--poolSize_ == 0 && shutdown_) {
      maximumPoolSize_ = minimumPoolSize_ = 0; // disable new threads
      notifyAll(); // notify awaitTerminationAfterShutdown
    }
  
    if (!shutdown_) { // create a replacement now if needed
      if (poolSize_ < minimumPoolSize_) {
        try {
          Runnable r = (Runnable)(handOff_.poll(0));
          if (r != null)
            addThread(r);
        } catch(InterruptedException ie) {
          return;
        }
      }
    }
  }
  
  (will be part of next maintenance release of this package)
  
  Revision  Changes    Path
  1.1                  cocoon-2.1/lib/core/util.concurrent-1.3.2-patched.jar
  
  	<<Binary file>>