Skip to content

Commit

Permalink
Merge pull request #356 from Reactive-Extensions/WeHave64bitInterlocked
Browse files Browse the repository at this point in the history
Removing check for 64-bit interlocked instructions
  • Loading branch information
Oren Novotny authored Apr 13, 2017
2 parents 78ca691 + 7bc69ae commit 67a8288
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Rx.NET/Source/src/System.Reactive/Internal/PriorityQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ namespace System.Reactive
{
internal class PriorityQueue<T> where T : IComparable<T>
{
#if !NO_INTERLOCKED_64
private static long _count = long.MinValue;
#else
private static int _count = int.MinValue;
#endif
private IndexedItem[] _items;
private int _size;

Expand Down Expand Up @@ -138,11 +134,7 @@ public bool Remove(T item)
struct IndexedItem : IComparable<IndexedItem>
{
public T Value;
#if !NO_INTERLOCKED_64
public long Id;
#else
public int Id;
#endif

public int CompareTo(IndexedItem other)
{
Expand Down

0 comments on commit 67a8288

Please sign in to comment.