33 internal unsafe
bool FindNewWork(out
long nFromInclusiveLocal, out
long nToExclusiveLocal)
42 if (nSharedCurrentIndexOffset ==
null)
50 fixed (
long* ptr = &nSharedCurrentIndexOffset.
Value)
61 nFromInclusiveLocal = indexRange._nFromInclusive + num2;
83 nFromInclusiveLocal = 0
L;
84 nToExclusiveLocal = 0
L;
88 internal bool FindNewWork32(out
int nFromInclusiveLocal32, out
int nToExclusiveLocal32)
90 long nFromInclusiveLocal33;
91 long nToExclusiveLocal33;
92 bool result =
FindNewWork(out nFromInclusiveLocal33, out nToExclusiveLocal33);
93 nFromInclusiveLocal32 = (int)nFromInclusiveLocal33;
94 nToExclusiveLocal32 = (int)nToExclusiveLocal33;
static int CompareExchange(ref int location1, int value, int comparand)
static int Exchange(ref int location1, int value)
static int Add(ref int location1, int value)
volatile StrongBox< long > _nSharedCurrentIndexOffset
readonly bool _use32BitCurrentIndex
readonly long _nMaxIncrementValue
bool FindNewWork32(out int nFromInclusiveLocal32, out int nToExclusiveLocal32)
unsafe bool FindNewWork(out long nFromInclusiveLocal, out long nToExclusiveLocal)
readonly IndexRange[] _indexRanges
RangeWorker(IndexRange[] ranges, int nInitialRange, long nStep, bool use32BitCurrentIndex)