|
10 | 10 | &reftitle.description; |
11 | 11 | <methodsynopsis> |
12 | 12 | <type>bool</type><methodname>pcntl_setcpuaffinity</methodname> |
13 | | - <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>pid</parameter><initializer>&null;</initializer></methodparam> |
14 | | - <methodparam choice="opt"><type>array</type><parameter>hmask</parameter></methodparam> |
| 13 | + <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>process_id</parameter><initializer>&null;</initializer></methodparam> |
| 14 | + <methodparam choice="opt"><type>array</type><parameter>cpu_ids</parameter><initializer>[]</initializer></methodparam> |
15 | 15 | </methodsynopsis> |
16 | 16 | <simpara> |
17 | | - Sets the cpu affinity for the <parameter>pid</parameter> with the cpu affinity mask given by |
18 | | - <parameter>hmask</parameter>. |
| 17 | + Sets the cpu affinity for the <parameter>process_id</parameter> with the cpu affinity mask given by |
| 18 | + <parameter>cpu_ids</parameter>. |
19 | 19 | </simpara> |
20 | 20 | </refsect1> |
21 | 21 |
|
22 | 22 | <refsect1 role="parameters"> |
23 | 23 | &reftitle.parameters; |
24 | 24 | <variablelist> |
25 | 25 | <varlistentry> |
26 | | - <term><parameter>pid</parameter></term> |
| 26 | + <term><parameter>process_id</parameter></term> |
27 | 27 | <listitem> |
28 | 28 | <simpara> |
29 | 29 | If &null;, the current process ID is used. |
30 | 30 | </simpara> |
31 | 31 | </listitem> |
32 | 32 | </varlistentry> |
33 | 33 | <varlistentry> |
34 | | - <term><parameter>hmask</parameter></term> |
| 34 | + <term><parameter>cpu_ids</parameter></term> |
35 | 35 | <listitem> |
36 | 36 | <simpara> |
37 | 37 | The cpu affinity mask comprised of one or more cpu id for binding the process to. |
|
53 | 53 | &reftitle.errors; |
54 | 54 | <simpara> |
55 | 55 | A <classname>TypeError</classname> is thrown if one |
56 | | - of the cpu id from the <parameter>hmask</parameter> is invalid. |
| 56 | + of the cpu id from the <parameter>cpu_ids</parameter> is invalid. |
57 | 57 | A <classname>ValueError</classname> is thrown if |
58 | | - <parameter>pid</parameter> is an invalid process id |
| 58 | + <parameter>process_id</parameter> is an invalid process id |
59 | 59 | or the cpu mask had failed to be created. |
60 | 60 | </simpara> |
61 | 61 | </refsect1> |
|
0 commit comments