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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:823: Inside #if HAVE_EVENTSTREAM
   // Make sure that the main backend is in CF-mode.    Pike.DefaultBackend.enable_core_foundation(1);       MON_WERR("Creating event stream.\n");   #if constant (System.FSEvents.kFSEventStreamCreateFlagFileEvents)    int flags = System.FSEvents.kFSEventStreamCreateFlagFileEvents;   #else    int flags = System.FSEvents.kFSEventStreamCreateFlagNone;   #endif    +  // Note: We let the polling system find the initial contents of +  // any pre-existing directories.    eventstream = -  System.FSEvents.EventStream(({}), 1.0, +  System.FSEvents.EventStream(({}), 0.1,    System.FSEvents.kFSEventStreamEventIdSinceNow,    flags);    eventstream->callback_func = eventstream_callback;   }      //! FSEvents EventStream-accelerated @[Monitor].   protected class EventStreamMonitor   {    inherit Monitor;   
pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:883: Inside #if undefined(INHIBIT_EVENTSTREAM_MONITOR)
   };       if (err) {    werror("%O: Failed to register path %O.\n", this_function, path);    master()->handle_error(err);    }    }    // Note: Falling through to ::register_path() below.    // This is needed to handle paths mounted on eg network    // filesystems that are modified on other machines. +  // It is also used to find the initial contents of a monitored directory.    }   #endif /* !INHIBIT_EVENTSTREAM_MONITOR */    ::register_path(initial);    }   }      constant DefaultMonitor = EventStreamMonitor;      #elseif HAVE_INOTIFY