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

version» Context lines:

pike.git/lib/modules/Filesystem.pmod/Monitor.pmod/basic.pike:1189:    mixed key = monitor_mutex->lock();    monitors = ([]);    monitor_queue = ADT.Heap();   #if HAVE_EVENTSTREAM    eventstream = 0;   #elseif HAVE_INOTIFY    instance = 0;   #endif   }    - //! Calculate a suitable time for the next poll of this monitor. - //! - //! @param m - //! Monitor to update. - //! - //! @param st - //! New stat for the monitor. - //! - //! This function is called by @[check_monitor()] to schedule the - //! next check. - protected void update_monitor(Monitor m, Stdio.Stat st) - { -  m->update(st); - } -  +    //! Release a single @[Monitor] from monitoring.   //!   //! @seealso   //! @[release()]   protected void release_monitor(Monitor m)   {    if (m->accellerated) return;    mixed key = monitor_mutex->lock();    monitor_queue->remove(m);   }