Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ParallelLoopStateFlags64.cs
Go to the documentation of this file.
1
namespace
System.Threading.Tasks
;
2
3
internal
sealed
class
ParallelLoopStateFlags64
:
ParallelLoopStateFlags
4
{
5
internal
long
_lowestBreakIteration
=
long
.MaxValue;
6
7
internal
long
LowestBreakIteration
8
{
9
get
10
{
11
if
(
IntPtr
.
Size
>= 8)
12
{
13
return
_lowestBreakIteration
;
14
}
15
return
Interlocked
.
Read
(ref
_lowestBreakIteration
);
16
}
17
}
18
19
internal
long
?
NullableLowestBreakIteration
20
{
21
get
22
{
23
if
(
_lowestBreakIteration
==
long
.MaxValue)
24
{
25
return
null
;
26
}
27
if
(
IntPtr
.
Size
>= 8)
28
{
29
return
_lowestBreakIteration
;
30
}
31
return
Interlocked
.
Read
(ref
_lowestBreakIteration
);
32
}
33
}
34
35
internal
bool
ShouldExitLoop
(
long
CallerIteration)
36
{
37
int
loopStateFlags = base.LoopStateFlags;
38
if
(loopStateFlags != 0)
39
{
40
if
((loopStateFlags & 0xD) == 0)
41
{
42
if
(((uint)loopStateFlags & 2u) != 0)
43
{
44
return
CallerIteration >
LowestBreakIteration
;
45
}
46
return
false
;
47
}
48
return
true
;
49
}
50
return
false
;
51
}
52
53
internal
bool
ShouldExitLoop
()
54
{
55
int
loopStateFlags = base.LoopStateFlags;
56
if
(loopStateFlags != 0)
57
{
58
return
(loopStateFlags & 9) != 0;
59
}
60
return
false
;
61
}
62
}
System.Threading.Interlocked.Read
static long Read(ref long location)
Definition
Interlocked.cs:95
System.Threading.Interlocked
Definition
Interlocked.cs:9
System.Threading.Tasks.ParallelLoopStateFlags64.ShouldExitLoop
bool ShouldExitLoop(long CallerIteration)
Definition
ParallelLoopStateFlags64.cs:35
System.Threading.Tasks.ParallelLoopStateFlags64.LowestBreakIteration
long LowestBreakIteration
Definition
ParallelLoopStateFlags64.cs:8
System.Threading.Tasks.ParallelLoopStateFlags64.NullableLowestBreakIteration
long? NullableLowestBreakIteration
Definition
ParallelLoopStateFlags64.cs:20
System.Threading.Tasks.ParallelLoopStateFlags64.ShouldExitLoop
bool ShouldExitLoop()
Definition
ParallelLoopStateFlags64.cs:53
System.Threading.Tasks.ParallelLoopStateFlags64._lowestBreakIteration
long _lowestBreakIteration
Definition
ParallelLoopStateFlags64.cs:5
System.Threading.Tasks.ParallelLoopStateFlags64
Definition
ParallelLoopStateFlags64.cs:4
System.Threading.Tasks.ParallelLoopStateFlags
Definition
ParallelLoopStateFlags.cs:4
System.Threading.Tasks
Definition
TaskToApm.cs:3
System.IntPtr.Size
static int Size
Definition
IntPtr.cs:21
System.IntPtr
Definition
IntPtr.cs:14
source
System.Threading.Tasks.Parallel
System.Threading.Tasks
ParallelLoopStateFlags64.cs
Generated by
1.10.0