コード例 #1
0
ファイル: stat_watcher.c プロジェクト: Epictetus/cool.io
/**
 *  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
ファイル: iowatcher.c プロジェクト: repeatedly/cool.io
/**
 *  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;
}