Reduce allocations for ComputeContext async execution

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-30 19:20:33 +01:00
1 親 c03006aa67
コミット ff59d3f5ad
4ファイル変更
+132 -31

検索条件に一致するファイルはありません

-1
ファイルの表示
@@ -27,6 +27,5 @@
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\InteropServices\NativeMemory.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\OSPlatformAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Runtime\Versioning\SupportedOSVersionAttribute.cs" />
<Compile Include="$(MSBuildThisFileDirectory)System\Threading.Tasks\TaskCompletionSource.cs" />
</ItemGroup>
</Project>
-15
ファイルの表示
@@ -1,15 +0,0 @@
namespace System.Threading.Tasks;
/// <summary>
/// A polyfill type that mirrors the non-generic <see cref="TaskCompletionSource{T}"/> type on .NET 6.
/// </summary>
internal sealed class TaskCompletionSource : TaskCompletionSource<object?>
{
/// <summary>
/// Transitions the underlying <see cref="Task"/> into the <see cref="TaskStatus.RanToCompletion"/> state.
/// </summary>
public void SetResult()
{
SetResult(null);
}
}