Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Scheduling.cs
Go to the documentation of this file.
1
namespace
System.Linq.Parallel
;
2
3
internal
static
class
Scheduling
4
{
5
internal
static
int
DefaultDegreeOfParallelism
=
Math
.
Min
(
Environment
.
ProcessorCount
, 512);
6
7
internal
static
int
GetDefaultDegreeOfParallelism
()
8
{
9
return
DefaultDegreeOfParallelism
;
10
}
11
12
internal
static
int
GetDefaultChunkSize<T>
()
13
{
14
if
(typeof(T).IsValueType)
15
{
16
return
128;
17
}
18
return
512 /
IntPtr
.
Size
;
19
}
20
}
System.Environment.ProcessorCount
static int ProcessorCount
Definition
Environment.cs:128
System.Environment
Definition
Environment.cs:15
System.Linq.Parallel.Scheduling.DefaultDegreeOfParallelism
static int DefaultDegreeOfParallelism
Definition
Scheduling.cs:5
System.Linq.Parallel.Scheduling.GetDefaultChunkSize< T >
static int GetDefaultChunkSize< T >()
Definition
Scheduling.cs:12
System.Linq.Parallel.Scheduling.GetDefaultDegreeOfParallelism
static int GetDefaultDegreeOfParallelism()
Definition
Scheduling.cs:7
System.Linq.Parallel.Scheduling
Definition
Scheduling.cs:4
System.Math.Min
static byte Min(byte val1, byte val2)
Definition
Math.cs:912
System.Math
Definition
Math.cs:13
System.Linq.Parallel
Definition
AnyAllSearchOperator.cs:5
System.IntPtr.Size
static int Size
Definition
IntPtr.cs:21
System.IntPtr
Definition
IntPtr.cs:14
source
System.Linq.Parallel
System.Linq.Parallel
Scheduling.cs
Generated by
1.10.0