Skip to content

Commit c35e9ea

Browse files
authored
Use nint for native-sized integers in Interlocked
Related: dotnet/runtime#118336
1 parent 330c8a7 commit c35e9ea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

xml/System.Threading/Interlocked.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,10 @@
858858
<Parameter Name="comparand" Type="System.IntPtr" Index="2" FrameworkAlternate="dotnet-uwp-10.0;net-10.0;net-5.0;net-6.0;net-7.0;net-8.0;net-9.0;netcore-1.0;netcore-1.1;netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netcore-3.1;netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;netstandard-1.0;netstandard-1.1;netstandard-1.2;netstandard-1.3;netstandard-1.4;netstandard-1.6;netstandard-2.0;netstandard-2.1" />
859859
</Parameters>
860860
<Docs>
861-
<param name="location1">The destination <see cref="T:System.IntPtr" />, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
862-
<param name="value">The <see cref="T:System.IntPtr" /> that replaces the destination value if the comparison results in equality.</param>
863-
<param name="comparand">The <see cref="T:System.IntPtr" /> that is compared to the value at <paramref name="location1" />.</param>
864-
<summary>Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
861+
<param name="location1">The destination, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
862+
<param name="value">The value that replaces the destination value if the comparison results in equality.</param>
863+
<param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
864+
<summary>Compares two native-sized signed integers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
865865
<returns>The original value in <paramref name="location1" />.</returns>
866866
<remarks>
867867
<format type="text/markdown"><![CDATA[
@@ -1251,10 +1251,10 @@ If `comparand` and the object in `location1` are equal by reference, then `value
12511251
<Parameter Name="comparand" Type="System.UIntPtr" Index="2" FrameworkAlternate="net-7.0;net-8.0;net-9.0;net-10.0" />
12521252
</Parameters>
12531253
<Docs>
1254-
<param name="location1">The destination <see cref="T:System.UIntPtr" />, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
1255-
<param name="value">The <see cref="T:System.UIntPtr" /> that replaces the destination value if the comparison results in equality.</param>
1256-
<param name="comparand">The <see cref="T:System.UIntPtr" /> that is compared to the value at <paramref name="location1" />.</param>
1257-
<summary>Compares two platform-specific handles or pointers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
1254+
<param name="location1">The destination, whose value is compared with the value of <paramref name="comparand" /> and possibly replaced by <paramref name="value" />.</param>
1255+
<param name="value">The value that replaces the destination value if the comparison results in equality.</param>
1256+
<param name="comparand">The value that is compared to the value at <paramref name="location1" />.</param>
1257+
<summary>Compares two native-sized unsigned integers for equality and, if they are equal, replaces the first one, as an atomic operation.</summary>
12581258
<returns>The original value in <paramref name="location1" />.</returns>
12591259
<remarks>To be added.</remarks>
12601260
<exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a <see langword="null" /> pointer.</exception>
@@ -1919,7 +1919,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value`
19191919
<Docs>
19201920
<param name="location1">The variable to set to the specified value.</param>
19211921
<param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
1922-
<summary>Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.</summary>
1922+
<summary>Sets a native-sized signed integer to a specified value and returns the original value, as an atomic operation.</summary>
19231923
<returns>The original value of <paramref name="location1" />.</returns>
19241924
<remarks>To be added.</remarks>
19251925
<exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a <see langword="null" /> pointer.</exception>
@@ -2274,7 +2274,7 @@ If `comparand` and the value in `location1` are equal by reference, then `value`
22742274
<Docs>
22752275
<param name="location1">The variable to set to the specified value.</param>
22762276
<param name="value">The value to which the <paramref name="location1" /> parameter is set.</param>
2277-
<summary>Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.</summary>
2277+
<summary>Sets a native-sized unsigned integer to a specified value and returns the original value, as an atomic operation.</summary>
22782278
<returns>The original value of <paramref name="location1" />.</returns>
22792279
<remarks>To be added.</remarks>
22802280
<exception cref="T:System.NullReferenceException">The address of <paramref name="location1" /> is a <see langword="null" /> pointer.</exception>

0 commit comments

Comments
 (0)