reference/sem/functions/sem-acquire.xml
cdc9d28d334bbc08386fecf8aade66080004a9dd
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.sem-acquire">
3
+
<refentry xml:id="function.sem-acquire" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>sem_acquire</refname>
6
6
<refpurpose>Acquire a semaphore</refpurpose>
...
...
@@ -10,8 +10,8 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>sem_acquire</methodname>
13
-
<methodparam><type>resource</type><parameter>sem_identifier</parameter></methodparam>
14
-
<methodparam choice="opt"><type>bool</type><parameter>nowait</parameter><initializer>false</initializer></methodparam>
13
+
<methodparam><type>SysvSemaphore</type><parameter>semaphore</parameter></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>non_blocking</parameter><initializer>&false;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>sem_acquire</function> by default blocks (if necessary) until the
...
...
@@ -31,21 +31,21 @@
31
31
<para>
32
32
<variablelist>
33
33
<varlistentry>
34
-
<term><parameter>sem_identifier</parameter></term>
34
+
<term><parameter>semaphore</parameter></term>
35
35
<listitem>
36
36
<para>
37
-
<parameter>sem_identifier</parameter> is a semaphore resource,
37
+
<parameter>semaphore</parameter> is a semaphore
38
38
obtained from <function>sem_get</function>.
39
39
</para>
40
40
</listitem>
41
41
</varlistentry>
42
42
<varlistentry>
43
-
<term><parameter>nowait</parameter></term>
43
+
<term><parameter>non_blocking</parameter></term>
44
44
<listitem>
45
45
<para>
46
46
Specifies if the process shouldn't wait for the semaphore to be acquired.
47
-
If set to <literal>true</literal>, the call will return
48
-
<literal>false</literal> immediately if a semaphore cannot be immediately
47
+
If set to &true;, the call will return
48
+
&false; immediately if a semaphore cannot be immediately
49
49
acquired.
50
50
</para>
51
51
</listitem>
...
...
@@ -74,9 +74,10 @@
74
74
</thead>
75
75
<tbody>
76
76
<row>
77
-
<entry>5.6.1</entry>
77
+
<entry>8.0.0</entry>
78
78
<entry>
79
-
The <parameter>$nowait</parameter> parameter was added.
79
+
<parameter>semaphore</parameter> expects a <classname>SysvSemaphore</classname>
80
+
instance now; previously, a <type>resource</type> was expected.
80
81
</entry>
81
82
</row>
82
83
</tbody>
...
...
@@ -96,7 +97,6 @@
96
97
</refsect1>
97
98
98
99
</refentry>
99
-

100
100
<!-- Keep this comment at the end of the file
101
101
Local variables:
102
102
mode: sgml
103
103