diff options
author | Jan Kotas <jkotas@microsoft.com> | 2019-01-19 00:24:57 -0800 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-01-19 16:58:53 -0800 |
commit | 80416dc50cce9fae908e59e83a699af0c0ee9531 (patch) | |
tree | 32bdb276aa95bede3f5eede8db691e24bbdf71f6 /src/System.Private.CoreLib/shared/System/Threading/Tasks | |
parent | 1f3a1ebd25bce4eefa93e9d37d3f4feb29707b3e (diff) | |
download | coreclr-80416dc50cce9fae908e59e83a699af0c0ee9531.tar.gz coreclr-80416dc50cce9fae908e59e83a699af0c0ee9531.tar.bz2 coreclr-80416dc50cce9fae908e59e83a699af0c0ee9531.zip |
Fix build for ProjectN/WinRTInterop Delete superfluous AsyncCausalityTracer arguments
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Threading/Tasks')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracer.Noop.cs | 41 | ||||
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracerConstants.cs | 30 |
2 files changed, 35 insertions, 36 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracer.Noop.cs b/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracer.Noop.cs index c3f787b36b..b00d5d6756 100644 --- a/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracer.Noop.cs +++ b/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracer.Noop.cs @@ -6,37 +6,6 @@ using System.Diagnostics; namespace System.Threading.Tasks { - internal enum CausalityTraceLevel - { - Required = 0, - Important = 1, - Verbose = 2, - } - - internal enum AsyncCausalityStatus - { - Started = 0, - Completed = 1, - Canceled = 2, - Error = 3, - } - - internal enum CausalityRelation - { - AssignDelegate = 0, - Join = 1, - Choice = 2, - Cancel = 3, - Error = 4, - } - - internal enum CausalitySynchronousWork - { - CompletionNotification = 0, - ProgressNotification = 1, - Execution = 2, - } - // // Empty implementation of AsyncCausality events // @@ -50,27 +19,27 @@ namespace System.Threading.Tasks } [Conditional("NOOP_ASYNCCASUALITYTRACER")] - public static void TraceOperationCreation(CausalityTraceLevel traceLevel, int taskId, string operationName, ulong relatedContext) + public static void TraceOperationCreation(Task task, string operationName) { } [Conditional("NOOP_ASYNCCASUALITYTRACER")] - public static void TraceOperationCompletion(CausalityTraceLevel traceLevel, int taskId, AsyncCausalityStatus status) + public static void TraceOperationCompletion(Task task, AsyncCausalityStatus status) { } [Conditional("NOOP_ASYNCCASUALITYTRACER")] - public static void TraceOperationRelation(CausalityTraceLevel traceLevel, int taskId, CausalityRelation relation) + public static void TraceOperationRelation(Task task, CausalityRelation relation) { } [Conditional("NOOP_ASYNCCASUALITYTRACER")] - public static void TraceSynchronousWorkStart(CausalityTraceLevel traceLevel, int taskId, CausalitySynchronousWork work) + public static void TraceSynchronousWorkStart(Task task, CausalitySynchronousWork work) { } [Conditional("NOOP_ASYNCCASUALITYTRACER")] - public static void TraceSynchronousWorkCompletion(CausalityTraceLevel traceLevel, CausalitySynchronousWork work) + public static void TraceSynchronousWorkCompletion(CausalitySynchronousWork work) { } } diff --git a/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracerConstants.cs b/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracerConstants.cs new file mode 100644 index 0000000000..3677051f05 --- /dev/null +++ b/src/System.Private.CoreLib/shared/System/Threading/Tasks/AsyncCausalityTracerConstants.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +namespace System.Threading.Tasks +{ + internal enum AsyncCausalityStatus + { + Started = 0, + Completed = 1, + Canceled = 2, + Error = 3, + } + + internal enum CausalityRelation + { + AssignDelegate = 0, + Join = 1, + Choice = 2, + Cancel = 3, + Error = 4, + } + + internal enum CausalitySynchronousWork + { + CompletionNotification = 0, + ProgressNotification = 1, + Execution = 2, + } +} |