… | |
… | |
4 | <head> |
4 | <head> |
5 | <title>libev</title> |
5 | <title>libev</title> |
6 | <meta name="description" content="Pod documentation for libev" /> |
6 | <meta name="description" content="Pod documentation for libev" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
7 | <meta name="inputfile" content="<standard input>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
8 | <meta name="outputfile" content="<standard output>" /> |
9 | <meta name="created" content="Mon Nov 12 09:35:17 2007" /> |
9 | <meta name="created" content="Mon Nov 12 09:35:36 2007" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
10 | <meta name="generator" content="Pod::Xhtml 1.57" /> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
11 | <link rel="stylesheet" href="http://res.tst.eu/pod.css"/></head> |
12 | <body> |
12 | <body> |
13 | <div class="pod"> |
13 | <div class="pod"> |
14 | <!-- INDEX START --> |
14 | <!-- INDEX START --> |
… | |
… | |
565 | reschedule callback will be called with the watcher as first, and the |
565 | reschedule callback will be called with the watcher as first, and the |
566 | current time as second argument.</p> |
566 | current time as second argument.</p> |
567 | <p>NOTE: <i>This callback MUST NOT stop or destroy the periodic or any other |
567 | <p>NOTE: <i>This callback MUST NOT stop or destroy the periodic or any other |
568 | periodic watcher, ever, or make any event loop modifications</i>. If you need |
568 | periodic watcher, ever, or make any event loop modifications</i>. If you need |
569 | to stop it, return <code>now + 1e30</code> (or so, fudge fudge) and stop it afterwards.</p> |
569 | to stop it, return <code>now + 1e30</code> (or so, fudge fudge) and stop it afterwards.</p> |
570 | <p>Also, <i><this callback must always return a time that is later than the |
570 | <p>Also, <i>this callback must always return a time that is later than the |
571 | passed <code>now</code> value </i>>. Not even <code>now</code> itself will be ok.</p> |
571 | passed <code>now</code> value</i>. Not even <code>now</code> itself will be ok.</p> |
572 | <p>Its prototype is c<ev_tstamp (*reschedule_cb)(struct ev_periodic *w, |
572 | <p>Its prototype is <code>ev_tstamp (*reschedule_cb)(struct ev_periodic *w, |
573 | ev_tstamp now)>, e.g.:</p> |
573 | ev_tstamp now)</code>, e.g.:</p> |
574 | <pre> static ev_tstamp my_rescheduler (struct ev_periodic *w, ev_tstamp now) |
574 | <pre> static ev_tstamp my_rescheduler (struct ev_periodic *w, ev_tstamp now) |
575 | { |
575 | { |
576 | return now + 60.; |
576 | return now + 60.; |
577 | } |
577 | } |
578 | |
578 | |