Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ParallelLoopStateFlags64.cs
Go to the documentation of this file.
2
4{
5 internal long _lowestBreakIteration = long.MaxValue;
6
7 internal long LowestBreakIteration
8 {
9 get
10 {
11 if (IntPtr.Size >= 8)
12 {
14 }
16 }
17 }
18
20 {
21 get
22 {
23 if (_lowestBreakIteration == long.MaxValue)
24 {
25 return null;
26 }
27 if (IntPtr.Size >= 8)
28 {
30 }
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}
static long Read(ref long location)
static int Size
Definition IntPtr.cs:21