From 75b9cb2c497378b3a52ceb4b609807458dffb21b Mon Sep 17 00:00:00 2001 From: Badrish Chandramouli Date: Tue, 3 Sep 2019 15:06:24 -0700 Subject: [PATCH] Update --- cs/src/core/Utilities/Utility.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cs/src/core/Utilities/Utility.cs b/cs/src/core/Utilities/Utility.cs index fab72aa36..34aa94ccd 100644 --- a/cs/src/core/Utilities/Utility.cs +++ b/cs/src/core/Utilities/Utility.cs @@ -4,6 +4,7 @@ using System; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; +using System.Threading; namespace FASTER.core { @@ -231,6 +232,7 @@ public static bool MonotonicUpdate(ref long variable, long newValue, out long ol } while (Interlocked.CompareExchange(ref variable, newValue, oldValue) != oldValue); return true; } + /// /// Updates the variable to newValue only if the current value is smaller than the new value. ///