rbb         99/02/15 13:04:22

  Modified:    pthreads/src/main http_main.c
  Log:
  This change sets up the acceptor threads to get the thread-id when they become
  ready.  More importantly, the scoreboard is more accurate, because it tells
  us when the thread is starting, not just ready to accept.
  
  Revision  Changes    Path
  1.26      +8 -1      apache-apr/pthreads/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/pthreads/src/main/http_main.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- http_main.c       1999/02/15 20:39:01     1.25
  +++ http_main.c       1999/02/15 21:04:21     1.26
  @@ -2006,6 +2006,10 @@
       lr = head_listener;
       if (lr) {
           while (lr->next != NULL) {
  +
  +         (void) ap_update_child_status(my_child_num, i, SERVER_STARTING, 
  +                                       (request_rec *) NULL);
  +
            my_info = NULL;
          
            my_info = (proc_info *)malloc(sizeof(proc_info));
  @@ -2043,11 +2047,14 @@
   
       pthread_attr_destroy(&thread_attr);
   
  +    (void) ap_update_child_status(my_child_num, i, SERVER_STARTING, 
  +                               (request_rec *) NULL);
  +
       my_info = NULL;
       
       my_info = (proc_info *)malloc(sizeof(proc_info));
       my_info->pid = my_child_num;
  -    my_info->tid = i++;
  +    my_info->tid = i;
       my_info->sd = lr->fd;
       lr->used = 1;
       
  
  
  

Reply via email to