Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Sep 3, 2019
1 parent 81a4a82 commit 75b9cb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cs/src/core/Utilities/Utility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
using System.Threading;

namespace FASTER.core
{
Expand Down Expand Up @@ -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;
}

/// <summary>
/// Updates the variable to newValue only if the current value is smaller than the new value.
/// </summary>
Expand Down

0 comments on commit 75b9cb2

Please sign in to comment.