Branch: Tag:

2000-12-12

2000-12-12 13:54:11 by Per Hedbor <ph@opera.com>

Extended the mutex related comment again

Rev: server/base_server/roxen.pike:1.585

4:   // Per Hedbor, Henrik Grubbstrm, Pontus Hagland, David Hedbor and others.      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.584 2000/12/12 13:11:30 noring Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.585 2000/12/12 13:54:11 per Exp $";      // Used when running threaded to find out which thread is the backend thread,   // for debug purposes only.
467: Inside #if defined(THREADS)
  {    // call_out is not really useful here, since we probably want to run    // the signal handler immediately, not whenever the backend thread -  // is available. +  // is available. /per    //    // Calling directly like this may however lead to recursive mutex    // lock errors. The problem cannot be solved using lock(2) since the    // internal structures may be in an inconsistent state from the    // previous call, and waiting for the lock probably leads to a -  // deadlock. +  // deadlock. /noring +  // +  // But on the other hand, you are not very likely to have any mutex +  // locks in an unthreaded pike, since it's quite impossible. /per    return f;   }   #endif