mturk       2002/07/14 06:41:36

  Modified:    jk/native2/server/isapi jk_iis_thread_pool.c
  Log:
  Detach the jvm when the thread receives the shudown signal.
  There is a substantial performance gain using this approach.
  
  Revision  Changes    Path
  1.2       +10 -1     
jakarta-tomcat-connectors/jk/native2/server/isapi/jk_iis_thread_pool.c
  
  Index: jk_iis_thread_pool.c
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/native2/server/isapi/jk_iis_thread_pool.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- jk_iis_thread_pool.c      8 Jul 2002 07:43:51 -0000       1.1
  +++ jk_iis_thread_pool.c      14 Jul 2002 13:41:36 -0000      1.2
  @@ -149,6 +149,15 @@
       while (GetQueuedCompletionStatus(global_thread_pool.worker_port,
               &n1, &n2, &pOverLapped, INFINITE)) {    
           if  (pOverLapped == THREAD_POOL_SHUTDOWN) {
  +            jk_ws_service_t *s = &thread->service;
  +            if (s->workerEnv && s->realWorker) {
  +                struct jk_worker *w = s->realWorker;
  +                jk_env_t *env = s->workerEnv->globalEnv->getEnv( 
s->workerEnv->globalEnv );
  +                if (w != NULL && w->channel != NULL 
  +                    && w->channel->afterRequest != NULL) {
  +                    w->channel->afterRequest( env, w->channel, w, NULL, s );
  +                }
  +            }
               break;
           }
           else if (pOverLapped == THREAD_POOL_RECYCLE) {
  
  
  

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

Reply via email to