Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Create() [3/4]

static OrderablePartitioner< Tuple< long, long > > System.Collections.Concurrent.Partitioner< TSource >.Create ( long fromInclusive,
long toExclusive )
inlinestaticinherited

Definition at line 812 of file Partitioner.cs.

813 {
815 {
816 throw new ArgumentOutOfRangeException("toExclusive");
817 }
818 decimal num = (decimal)toExclusive - (decimal)fromInclusive;
819 long num2 = (long)(num / (decimal)(Environment.ProcessorCount * 3));
820 if (num2 == 0L)
821 {
822 num2 = 1L;
823 }
825 }
static OrderablePartitioner< Tuple< long, long > > Create(long fromInclusive, long toExclusive)
static IEnumerable< Tuple< long, long > > CreateRanges(long fromInclusive, long toExclusive, long rangeSize)

References System.Collections.Concurrent.Partitioner< TSource >.Create(), System.Collections.Concurrent.Partitioner< TSource >.CreateRanges(), and System.L.

Referenced by System.Collections.Concurrent.Partitioner< TSource >.Create(), System.Collections.Concurrent.Partitioner< TSource >.Create(), System.Collections.Concurrent.Partitioner< TSource >.Create(), System.Collections.Concurrent.Partitioner< TSource >.Create(), System.Collections.Concurrent.Partitioner< TSource >.Create< TSource >(), and System.Threading.Tasks.Parallel.ForEachWorker< TSource, TLocal >().