Merge branch 'master' of git.dolda2000.com:/srv/git/r/jsvc
authorFredrik Tolf <fredrik@dolda2000.com>
Tue, 29 Mar 2011 05:00:57 +0000 (07:00 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Tue, 29 Mar 2011 05:00:57 +0000 (07:00 +0200)
1  2 
src/dolda/jsvc/ThreadContext.java

@@@ -118,8 -118,8 +118,8 @@@ public class ThreadContext extends Thre
      }
      
      public void shutdown() {
 -      if(root instanceof ContextResponder)
 -          ((ContextResponder)root).destroy();
 +      if(root instanceof Destroyable)
 +          ((Destroyable)root).destroy();
        try {
            long last = 0;
            while(true) {
        return(ctx.worker(root, req, workers, "Worker thread " + reqs++));
      }
      
+     public long requests() {
+       return(reqs);
+     }
+     
      private Responder bootstrap(final Class<?> bootclass) {
        final Throwable[] err = new Throwable[1];
        final Responder[] res = new Responder[1];