Delete PinnableBufferCache (dotnet/corertdotnet/coreclr#5950)
authorJan Kotas <jkotas@microsoft.com>
Mon, 18 Jun 2018 19:00:33 +0000 (12:00 -0700)
committerJan Kotas <jkotas@microsoft.com>
Mon, 18 Jun 2018 21:13:29 +0000 (14:13 -0700)
Port https://github.com/dotnet/coreclr/pull/18360 to CoreRT

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/108ead41ca9243d4c6e1c6f3866fe986c44e31a1

src/coreclr/src/System.Private.CoreLib/src/System/Threading/Overlapped.cs
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Threading/NativeOverlapped.cs [new file with mode: 0644]

index 1d6d682..12c0145 100644 (file)
@@ -6,7 +6,6 @@
 
 /*
  * This files defines the following types:
- *  - NativeOverlapped
  *  - _IOCompletionCallback
  *  - OverlappedData
  *  - Overlapped
 =============================================================================*/
 
 
-using System;
-using System.Runtime.InteropServices;
-using System.Runtime.CompilerServices;
-using System.Runtime.Versioning;
-using System.Security;
-using System.Runtime.ConstrainedExecution;
 using System.Diagnostics;
-using System.Collections.Concurrent;
+using System.Runtime.CompilerServices;
 
 namespace System.Threading
 {
-    #region struct NativeOverlapped
-
-    // Valuetype that represents the (unmanaged) Win32 OVERLAPPED structure
-    // the layout of this structure must be identical to OVERLAPPED.
-    // The first five matches OVERLAPPED structure.
-    // The remaining are reserved at the end
-    [System.Runtime.InteropServices.StructLayout(LayoutKind.Sequential)]
-    public struct NativeOverlapped
-    {
-        public IntPtr InternalLow;
-        public IntPtr InternalHigh;
-        public int OffsetLow;
-        public int OffsetHigh;
-        public IntPtr EventHandle;
-    }
-
-    #endregion struct NativeOverlapped
-
-
     #region class _IOCompletionCallback
 
     internal unsafe class _IOCompletionCallback
index 4bdcb24..7ee0321 100644 (file)
     <Compile Include="$(MSBuildThisFileDirectory)System\Threading\LockRecursionException.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Threading\ManualResetEvent.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Threading\Mutex.cs" />
+    <Compile Include="$(MSBuildThisFileDirectory)System\Threading\NativeOverlapped.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Threading\ParameterizedThreadStart.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Threading\ReaderWriterLockSlim.cs" />
     <Compile Include="$(MSBuildThisFileDirectory)System\Threading\SemaphoreFullException.cs" />
diff --git a/src/libraries/System.Private.CoreLib/src/System/Threading/NativeOverlapped.cs b/src/libraries/System.Private.CoreLib/src/System/Threading/NativeOverlapped.cs
new file mode 100644 (file)
index 0000000..933cb81
--- /dev/null
@@ -0,0 +1,18 @@
+// 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.
+
+using System.Runtime.InteropServices;
+
+namespace System.Threading
+{
+    [StructLayout(LayoutKind.Sequential)]
+    public struct NativeOverlapped
+    {
+        public IntPtr InternalLow;
+        public IntPtr InternalHigh;
+        public int OffsetLow;
+        public int OffsetHigh;
+        public IntPtr EventHandle;
+    }
+}