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

◆ FinishStageTwo()

void System.Threading.Tasks.Task< TResult >.FinishStageTwo ( )
inlineprivateinherited

Definition at line 1878 of file Task.cs.

1879 {
1880 ContingentProperties contingentProperties = Volatile.Read(ref m_contingentProperties);
1881 if (contingentProperties != null)
1882 {
1884 }
1885 int num;
1887 {
1888 num = 2097152;
1889 if (TplEventSource.Log.IsEnabled())
1890 {
1891 TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Error);
1892 }
1894 {
1896 }
1897 }
1899 {
1900 num = 4194304;
1901 if (TplEventSource.Log.IsEnabled())
1902 {
1903 TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Canceled);
1904 }
1906 {
1908 }
1909 }
1910 else
1911 {
1912 num = 16777216;
1913 if (TplEventSource.Log.IsEnabled())
1914 {
1915 TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed);
1916 }
1918 {
1920 }
1921 }
1922 Interlocked.Exchange(ref m_stateFlags, m_stateFlags | num);
1924 if (contingentProperties != null)
1925 {
1926 contingentProperties.SetCompleted();
1927 contingentProperties.UnregisterCancellationCallback();
1928 }
1930 }
ContingentProperties m_contingentProperties
Definition Task.cs:964
static bool s_asyncDebuggingEnabled
Definition Task.cs:960
volatile int m_stateFlags
Definition Task.cs:954
void AddExceptionsFromChildren(ContingentProperties props)
Definition Task.cs:1977
static void RemoveFromActiveTasks(Task task)
Definition Task.cs:1197

References System.Threading.Tasks.Task< TResult >.AddExceptionsFromChildren(), System.Threading.Tasks.Task< TResult >.ExceptionRecorded, System.Threading.Interlocked.Exchange(), System.Threading.Tasks.Task< TResult >.FinishStageThree(), System.Threading.Tasks.Task< TResult >.Id, System.Threading.Tasks.Task< TResult >.IsCancellationAcknowledged, System.Threading.Tasks.Task< TResult >.IsCancellationRequested, System.Threading.Tasks.TplEventSource.Log, System.Threading.Tasks.Task< TResult >.m_contingentProperties, System.Threading.Tasks.Task< TResult >.m_stateFlags, System.Threading.Volatile.Read(), System.Threading.Tasks.Task< TResult >.RemoveFromActiveTasks(), and System.Threading.Tasks.Task< TResult >.s_asyncDebuggingEnabled.

Referenced by System.Threading.Tasks.Task< TResult >.Finish(), System.Threading.Tasks.Task< TResult >.FinishSlow(), and System.Threading.Tasks.Task< TResult >.ProcessChildCompletion().