Sha256: 3ac4e297a07deb3c2c43e1facd6407cca44088558ea5b01da6a1d47ae67f42da
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>reset (Rev::TimerWatcher)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre>/** * call-seq: * Rev::TimerWatcher#reset -> Rev::TimerWatcher * * Reset the TimerWatcher. This behaves differently depending on if it's repeating. * * If the timer is pending, its pending status is cleared. * * If the timer is attached but nonrepeating, stop it (as if it timed out) * * If the timer is repeating, reset it so it will fire again after its given interval */ static VALUE Rev_TimerWatcher_reset(VALUE self) { struct Rev_Watcher *watcher_data; struct Rev_Loop *loop_data; Data_Get_Struct(self, struct Rev_Watcher, watcher_data); if(watcher_data->loop == Qnil) rb_raise(rb_eRuntimeError, "not attached to a loop"); Data_Get_Struct(watcher_data->loop, struct Rev_Loop, loop_data); ev_timer_again(loop_data->ev_loop, &watcher_data->event_types.ev_timer); return self; }</pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rev-0.1.2 | doc/rdoc/classes/Rev/TimerWatcher.src/M000091.html |