Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
QueryOpeningEnumerator.cs
Go to the documentation of this file.
4
6
7internal sealed class QueryOpeningEnumerator<TOutput> : IEnumerator<TOutput>, IEnumerator, IDisposable
8{
10
12
14
16
17 private readonly bool _suppressOrderPreservation;
18
19 private int _moveNextIteration;
20
22
24
26
27 public TOutput Current
28 {
29 get
30 {
31 if (_openedQueryEnumerator == null)
32 {
34 }
36 }
37 }
38
39 object IEnumerator.Current => ((IEnumerator<TOutput>)this).Current;
40
47
48 public void Dispose()
49 {
50 _topLevelDisposedFlag.Value = true;
52 if (_openedQueryEnumerator != null)
53 {
54 _openedQueryEnumerator.Dispose();
56 }
58 }
59
60 public bool MoveNext()
61 {
63 {
65 }
66 if (_openedQueryEnumerator == null)
67 {
68 OpenQuery();
69 }
70 bool result = _openedQueryEnumerator.MoveNext();
71 if ((_moveNextIteration & 0x3F) == 0)
72 {
74 }
76 return result;
77 }
78
98
99 public void Reset()
100 {
101 throw new NotSupportedException();
102 }
103}
static void ThrowWithStandardMessageIfCanceled(CancellationToken externalCancellationToken)
static void LogicalQueryExecutionEnd(int queryID)
static void LogicalQueryExecutionBegin(int queryID)
readonly QueryOperator< TOutput > _queryOperator
readonly CancellationTokenSource _topLevelCancellationTokenSource
QueryOpeningEnumerator(QueryOperator< TOutput > queryOperator, ParallelMergeOptions? mergeOptions, bool suppressOrderPreservation)
static string PLINQ_EnumerationPreviouslyFailed
Definition SR.cs:46
static string PLINQ_DisposeRequested
Definition SR.cs:28
static string PLINQ_CommonEnumerator_Current_NotStarted
Definition SR.cs:24
Definition SR.cs:7