cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/lib/core util.concurrent-1.3.2-patched.jar
Date Sun, 31 Aug 2003 09:31:55 GMT
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>>
  
  

Mime
View raw message