Skip to content

Commit f699247

Browse files
committed
initial translation in eio/functions
1 parent 9c4208a commit f699247

File tree

5 files changed

+475
-0
lines changed

5 files changed

+475
-0
lines changed

Diff for: reference/eio/functions/eio-npending.xml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: b38591439b2afe309740774f5fa41cafe32c72b9 Maintainer: leonardolara Status: ready -->
3+
4+
<refentry xml:id="function.eio-npending" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<refnamediv>
6+
<refname>eio_npending</refname>
7+
<refpurpose>Retorna o número de requisições concluídas, mas não tratadas</refpurpose>
8+
</refnamediv>
9+
10+
<refsect1 role="description">
11+
&reftitle.description;
12+
<methodsynopsis>
13+
<type>int</type><methodname>eio_npending</methodname>
14+
<void />
15+
</methodsynopsis>
16+
<para>
17+
<function>eio_npending</function> retorna o número de requisições concluídas, mas não tratadas.
18+
</para>
19+
20+
</refsect1>
21+
22+
<refsect1 role="parameters">
23+
&reftitle.parameters;
24+
&no.function.parameters;
25+
</refsect1>
26+
27+
<refsect1 role="returnvalues">
28+
&reftitle.returnvalues;
29+
<para>
30+
<function>eio_npending</function> retorna o número de requisições concluídas, mas não
31+
tratadas.
32+
</para>
33+
</refsect1>
34+
35+
36+
<refsect1 role="seealso">
37+
&reftitle.seealso;
38+
<simplelist>
39+
<member><function>eio_nreqs</function></member>
40+
<member><function>eio_nready</function></member>
41+
<member><function>eio_nthreads</function></member>
42+
</simplelist>
43+
</refsect1>
44+
45+
</refentry>
46+
47+
<!-- Keep this comment at the end of the file
48+
Local variables:
49+
mode: sgml
50+
sgml-omittag:t
51+
sgml-shorttag:t
52+
sgml-minimize-attributes:nil
53+
sgml-always-quote-attributes:t
54+
sgml-indent-step:1
55+
sgml-indent-data:t
56+
indent-tabs-mode:nil
57+
sgml-parent-document:nil
58+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
59+
sgml-exposed-tags:nil
60+
sgml-local-catalogs:nil
61+
sgml-local-ecat-files:nil
62+
End:
63+
vim600: syn=xml fen fdm=syntax fdl=2 si
64+
vim: et tw=78 syn=sgml
65+
vi: ts=1 sw=1
66+
-->

Diff for: reference/eio/functions/eio-nready.xml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: b38591439b2afe309740774f5fa41cafe32c72b9 Maintainer: leonardolara Status: ready -->
3+
4+
<refentry xml:id="function.eio-nready" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<refnamediv>
6+
<refname>eio_nready</refname>
7+
<refpurpose>Retorna o número de requisições ainda não tratadas</refpurpose>
8+
</refnamediv>
9+
10+
<refsect1 role="description">
11+
&reftitle.description;
12+
<methodsynopsis>
13+
<type>int</type><methodname>eio_nready</methodname>
14+
<void />
15+
</methodsynopsis>
16+
<para>
17+
18+
</para>
19+
20+
</refsect1>
21+
22+
<refsect1 role="parameters">
23+
&reftitle.parameters;
24+
&no.function.parameters;
25+
</refsect1>
26+
27+
<refsect1 role="returnvalues">
28+
&reftitle.returnvalues;
29+
<para>
30+
<function>eio_nready</function> retorna o número de requisições ainda não tratadas.
31+
</para>
32+
</refsect1>
33+
34+
35+
<refsect1 role="seealso">
36+
&reftitle.seealso;
37+
<simplelist>
38+
<member><function>eio_nreqs</function></member>
39+
<member><function>eio_nready</function></member>
40+
<member><function>eio_nthreads</function></member>
41+
</simplelist>
42+
</refsect1>
43+
44+
</refentry>
45+
46+
<!-- Keep this comment at the end of the file
47+
Local variables:
48+
mode: sgml
49+
sgml-omittag:t
50+
sgml-shorttag:t
51+
sgml-minimize-attributes:nil
52+
sgml-always-quote-attributes:t
53+
sgml-indent-step:1
54+
sgml-indent-data:t
55+
indent-tabs-mode:nil
56+
sgml-parent-document:nil
57+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
58+
sgml-exposed-tags:nil
59+
sgml-local-catalogs:nil
60+
sgml-local-ecat-files:nil
61+
End:
62+
vim600: syn=xml fen fdm=syntax fdl=2 si
63+
vim: et tw=78 syn=sgml
64+
vi: ts=1 sw=1
65+
-->

Diff for: reference/eio/functions/eio-nreqs.xml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: b38591439b2afe309740774f5fa41cafe32c72b9 Maintainer: leonardolara Status: ready -->
3+
4+
<refentry xml:id="function.eio-nreqs" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<refnamediv>
6+
<refname>eio_nreqs</refname>
7+
<refpurpose>Retorna o número de requisições a serem processadas</refpurpose>
8+
</refnamediv>
9+
10+
<refsect1 role="description">
11+
&reftitle.description;
12+
<methodsynopsis>
13+
<type>int</type><methodname>eio_nreqs</methodname>
14+
<void />
15+
</methodsynopsis>
16+
<para>
17+
<function>eio_nreqs</function> poderia ser chamada em um laço customizado chamando
18+
<function>eio_poll</function>.
19+
</para>
20+
21+
</refsect1>
22+
23+
<refsect1 role="parameters">
24+
&reftitle.parameters;
25+
&no.function.parameters;
26+
</refsect1>
27+
28+
<refsect1 role="returnvalues">
29+
&reftitle.returnvalues;
30+
<para>
31+
<function>eio_nreqs</function> retorna o número de requisições a serem processadas.
32+
</para>
33+
</refsect1>
34+
35+
<refsect1 role="examples">
36+
&reftitle.examples;
37+
<example>
38+
<title>Exemplo de <function>eio_nreqs</function></title>
39+
<programlisting role="php">
40+
<![CDATA[
41+
<?php
42+
function res_cb($data, $result) {
43+
var_dump($data);
44+
var_dump($result);
45+
}
46+
47+
eio_nop(EIO_PRI_DEFAULT, "res_cb", "1");
48+
eio_nop(EIO_PRI_DEFAULT, "res_cb", "2");
49+
eio_nop(EIO_PRI_DEFAULT, "res_cb", "3");
50+
51+
while (eio_nreqs()) {
52+
eio_poll();
53+
}
54+
?>
55+
]]>
56+
</programlisting>
57+
&example.outputs.similar;
58+
<screen>
59+
<![CDATA[
60+
string(1) "1"
61+
int(0)
62+
string(1) "3"
63+
int(0)
64+
string(1) "2"
65+
int(0)
66+
]]>
67+
</screen>
68+
</example>
69+
</refsect1>
70+
71+
72+
<refsect1 role="seealso">
73+
&reftitle.seealso;
74+
<simplelist>
75+
<member><function>eio_poll</function></member>
76+
<member><function>eio_nready</function></member>
77+
</simplelist>
78+
</refsect1>
79+
80+
</refentry>
81+
82+
<!-- Keep this comment at the end of the file
83+
Local variables:
84+
mode: sgml
85+
sgml-omittag:t
86+
sgml-shorttag:t
87+
sgml-minimize-attributes:nil
88+
sgml-always-quote-attributes:t
89+
sgml-indent-step:1
90+
sgml-indent-data:t
91+
indent-tabs-mode:nil
92+
sgml-parent-document:nil
93+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
94+
sgml-exposed-tags:nil
95+
sgml-local-catalogs:nil
96+
sgml-local-ecat-files:nil
97+
End:
98+
vim600: syn=xml fen fdm=syntax fdl=2 si
99+
vim: et tw=78 syn=sgml
100+
vi: ts=1 sw=1
101+
-->

Diff for: reference/eio/functions/eio-nthreads.xml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- EN-Revision: 0c4ba45053746fbb23f9813a163bdeaeb593b142 Maintainer: leonardolara Status: ready -->
3+
4+
<refentry xml:id="function.eio-nthreads" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<refnamediv>
6+
<refname>eio_nthreads</refname>
7+
<refpurpose>Retorna o número de threads em uso</refpurpose>
8+
</refnamediv>
9+
10+
<refsect1 role="description">
11+
&reftitle.description;
12+
<methodsynopsis>
13+
<type>int</type><methodname>eio_nthreads</methodname>
14+
<void />
15+
</methodsynopsis>
16+
<para>
17+
18+
</para>
19+
20+
</refsect1>
21+
22+
<refsect1 role="parameters">
23+
&reftitle.parameters;
24+
&no.function.parameters;
25+
</refsect1>
26+
27+
<refsect1 role="returnvalues">
28+
&reftitle.returnvalues;
29+
<para>
30+
<function>eio_nthreads</function> retorna o número de threads em
31+
uso.
32+
</para>
33+
</refsect1>
34+
35+
36+
<refsect1 role="seealso">
37+
&reftitle.seealso;
38+
<simplelist>
39+
<member><function>eio_npending</function></member>
40+
<member><function>eio_nready</function></member>
41+
<member><function>eio_nreqs</function></member>
42+
<member><function>eio_set_max_idle</function></member>
43+
<member><function>eio_set_max_parallel</function></member>
44+
<member><function>eio_set_min_parallel</function></member>
45+
</simplelist>
46+
</refsect1>
47+
48+
</refentry>
49+
50+
<!-- Keep this comment at the end of the file
51+
Local variables:
52+
mode: sgml
53+
sgml-omittag:t
54+
sgml-shorttag:t
55+
sgml-minimize-attributes:nil
56+
sgml-always-quote-attributes:t
57+
sgml-indent-step:1
58+
sgml-indent-data:t
59+
indent-tabs-mode:nil
60+
sgml-parent-document:nil
61+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
62+
sgml-exposed-tags:nil
63+
sgml-local-catalogs:nil
64+
sgml-local-ecat-files:nil
65+
End:
66+
vim600: syn=xml fen fdm=syntax fdl=2 si
67+
vim: et tw=78 syn=sgml
68+
vi: ts=1 sw=1
69+
-->

0 commit comments

Comments
 (0)