pike.git / lib / modules / Filesystem.pmod / Monitor.pmod / basic.pike

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:232:   //! Monitoring information for a single filesystem path.   //!   //! @seealso   //! @[monitor()]   protected class Monitor(string path,    MonitorFlags flags,    int max_dir_check_interval,    int file_interval_factor,    int stable_time)   { +  inherit ADT.Heap.Element; +     int next_poll;    Stdio.Stat st;    int last_change = 0x7fffffff; // Future... Can be set to -0x7fffffff    // to indicate immediate stabilization    // (avoid an extra check() round to    // let the stat stabilize).    array(string) files;      #ifdef HAVE_INOTIFY    int wd;   #endif       int `<(mixed m) { return next_poll < m; }    int `>(mixed m) { return next_poll > m; }       void create()    { -  +  Element::create(this);   #if HAVE_EVENTSTREAM    int already_added = 0;    foreach(eventstream_paths;;string p)    {    if(has_prefix(path, p))    already_added = 1;    }    if(already_added) return;    eventstream_paths += ({path});    if(eventstream->is_started())