Skip to content

Commit 0869020

Browse files
committed
Fixed compiler warning
1 parent 43c803f commit 0869020

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DotNext/Threading/Atomic.UInt64.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public static ulong GetAndUpdate(ref ulong value, Func<ulong, ulong> updater)
132132
/// </remarks>
133133
/// <param name="location">The location of the value.</param>
134134
/// <returns>The value at the specified location.</returns>
135+
[CLSCompliant(false)]
135136
public static ulong Read(ref readonly ulong location) => InterlockedOperations.VolatileRead(in location);
136137

137138
/// <summary>
@@ -142,5 +143,6 @@ public static ulong GetAndUpdate(ref ulong value, Func<ulong, ulong> updater)
142143
/// </remarks>
143144
/// <param name="location">The location of the value.</param>
144145
/// <param name="value">The desired value at the specified location.</param>
146+
[CLSCompliant(false)]
145147
public static void Write(ref ulong location, ulong value) => InterlockedOperations.VolatileWrite(ref location, value);
146148
}

0 commit comments

Comments
 (0)