reference/ev/periodic-modes.xml
bbfa9738785f054752e6cb565cd0a58e71015bc6
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<chapter xml:id="ev.periodic-modes" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+
<chapter xml:id="ev.periodic-modes" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
4
4
<title>Periodic watcher operation modes</title>
5
5
<para>
6
6
<classname>EvPeriodic</classname>
...
...
@@ -19,7 +19,7 @@
19
19
. In this mode
20
20
<parameter>interval</parameter>
21
21
=
22
-
<constant>0</constant>
22
+
<literal>0</literal>
23
23
,
24
24
<parameter>reschedule_cb</parameter>
25
25
= &null;. This time simply fires at the wallclock time
...
...
@@ -37,7 +37,7 @@
37
37
. In this mode
38
38
<parameter>interval</parameter>
39
39
&gt;
40
-
<constant>0</constant>
40
+
<literal>0</literal>
41
41
,
42
42
<parameter>reschedule_cb</parameter>
43
43
= &null;; the watcher will always be scheduled to timeout at the next
...
...
@@ -63,7 +63,7 @@ $hourly = EvPeriodic(0, 3600, NULL, function () {
63
63
]]>
64
64
</programlisting>
65
65
That doesn't mean there will always be
66
-
<constant>3600</constant>
66
+
<literal>3600</literal>
67
67
seconds in between triggers, but only that the callback will be called
68
68
when the system time shows a full hour(
69
69
<emphasis>UTC</emphasis>
...
...
@@ -106,7 +106,7 @@ $hourly = EvPeriodic(0, 3600, NULL, function () {
106
106
stop or destroy this or any other periodic watchers, ever, and
107
107
<emphasis>must not</emphasis>
108
108
call any event loop functions or methods. To stop it return
109
-
<constant>1e30</constant>
109
+
<literal>1e30</literal>
110
110
and stop it afterwards. An
111
111
<classname>EvPrepare</classname>
112
112
watcher may be used for this task.
113
113