Branch: Tag:

2001-06-13

2001-06-13 17:21:56 by 0

Added method for adjusting callback interval in BackgroundProcess.

Rev: server/base_server/roxen.pike:1.672

4:   // 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.671 2001/06/13 13:17:44 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.672 2001/06/13 17:21:56 jonasw Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
936:    background_run (period, repeat, func, args);    }    +  //! @decl void set_period (int|float period); +  //! +  //! Changes the period to @[period] seconds between calls. +  void set_period (int|float period_) +  { +  period = period_; +  } +     //! @decl static void create (int|float period, function func, mixed... args);    //!    //! The function @[func] will be called with the following arguments