Branch: Tag:

2012-06-07

2012-06-07 12:12:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed typo in release_handler_threads().

Potential fix for self-tests hanging on exit.

Rev: server/base_server/roxen.pike:1.1114

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1113 2012/02/27 23:32:11 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1114 2012/06/07 12:12:09 grubba Exp $";      //! @appears roxen   //!
637: Inside #if defined(THREADS)
   return tmp;    }    -  mixed tryread() +  mixed try_read()    {    if (!(w_ptr - r_ptr)) return ([])[0];    mixed tmp = buffer[r_ptr];
1062:    if (Thread.Condition cond = hold_wakeup_cond) {    // Flush out any remaining hold messages from the queue.    for (int i = handle_queue->size(); i && num_hold_messages; i--) { -  mixed task = handle_queue->tryread(); +  mixed task = handle_queue->try_read();    if (task == 1) num_hold_messages--;    else handle_queue->write (task);    }