diff options
3 files changed, 13 insertions, 6 deletions
diff --git a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems index fe69d3d0c2..a2d8a87e41 100644 --- a/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems +++ b/src/System.Private.CoreLib/shared/System.Private.CoreLib.Shared.projitems @@ -683,6 +683,7 @@ <Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventResetMode.cs" /> <Compile Include="$(MSBuildThisFileDirectory)System\Threading\EventWaitHandle.cs" /> <Compile Include="$(MSBuildThisFileDirectory)System\Threading\ExecutionContext.cs" /> + <Compile Include="$(MSBuildThisFileDirectory)System\Threading\IThreadPoolWorkItem.cs" /> <Compile Include="$(MSBuildThisFileDirectory)System\Threading\LazyInitializer.cs" /> <Compile Include="$(MSBuildThisFileDirectory)System\Threading\LazyThreadSafetyMode.cs" /> <Compile Include="$(MSBuildThisFileDirectory)System\Threading\LockRecursionException.cs" /> diff --git a/src/System.Private.CoreLib/shared/System/Threading/IThreadPoolWorkItem.cs b/src/System.Private.CoreLib/shared/System/Threading/IThreadPoolWorkItem.cs new file mode 100644 index 0000000000..31cd991813 --- /dev/null +++ b/src/System.Private.CoreLib/shared/System/Threading/IThreadPoolWorkItem.cs @@ -0,0 +1,12 @@ +// 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 +{ + /// <summary>Represents a work item that can be executed by the ThreadPool.</summary> + public interface IThreadPoolWorkItem + { + void Execute(); + } +}
\ No newline at end of file diff --git a/src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs b/src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs index cf44d850a4..2f77425ec5 100644 --- a/src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs +++ b/src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs @@ -917,12 +917,6 @@ namespace System.Threading public delegate void WaitOrTimerCallback(object state, bool timedOut); // signaled or timed out - /// <summary>Represents a work item that can be executed by the ThreadPool.</summary> - public interface IThreadPoolWorkItem - { - void Execute(); - } - // // This type is necessary because VS 2010's debugger looks for a method named _ThreadPoolWaitCallbacck.PerformWaitCallback // on the stack to determine if a thread is a ThreadPool thread or not. We have a better way to do this for .NET 4.5, but |