Skip to content

Commit f12b401

Browse files
committed
Fix GH-1397: autounlock parameter in constructor is actually int not bool
1 parent d5ba7eb commit f12b401

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

reference/sync/syncreaderwriter/construct.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<methodsynopsis>
1313
<modifier>public</modifier> <methodname>SyncReaderWriter::__construct</methodname>
1414
<methodparam choice="opt"><type>string</type><parameter>name</parameter></methodparam>
15-
<methodparam choice="opt"><type>bool</type><parameter>autounlock</parameter><initializer>&true;</initializer></methodparam>
15+
<methodparam choice="opt"><type>int</type><parameter>autounlock</parameter><initializer>1</initializer></methodparam>
1616
</methodsynopsis>
1717
<para>
1818
Constructs a named or unnamed reader-writer object.
@@ -35,6 +35,11 @@
3535
error message.
3636
</para>
3737
</note>
38+
<note>
39+
<simpara>
40+
On Windows, <parameter>name</parameter> must not contain backslashes.
41+
</simpara>
42+
</note>
3843
</listitem>
3944
</varlistentry>
4045
<varlistentry>

0 commit comments

Comments
 (0)