示例#1
0
/**
 *  call-seq:
 *    Coolio::StatWatcher.disable -> Coolio::StatWatcher
 * 
 * Temporarily disable a stat watcher which is attached to a loop.  
 * This is useful if you wish to toggle event monitoring on and off.  
 */
static VALUE Coolio_StatWatcher_disable(VALUE self)
{
  Watcher_Disable(stat, self);

  return self;
}
示例#2
0
/**
 *  call-seq:
 *    Coolio::IOWatcher.disable -> Coolio::IOWatcher
 * 
 * Temporarily disable an IO watcher which is attached to a loop.  
 * This is useful if you wish to toggle event monitoring on and off.  
 */
static VALUE Coolio_IOWatcher_disable(VALUE self)
{
  Watcher_Disable(io, self);

  return self;
}