Imported Upstream version 4.2.0.179

Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
Xamarin Public Jenkins
2015-08-26 07:17:56 -04:00
committed by Jo Shields
parent 183bba2c9a
commit 6992685b86
7507 changed files with 90259 additions and 657307 deletions

View File

@@ -33,7 +33,20 @@
namespace System.Threading
{
using System.Security;
using System.Runtime.Remoting;
using System.Security.Permissions;
using System;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Tracing;
#if !MONO
using Microsoft.Win32;
#endif
//
// Interface to something that can be queued to the TP. This is implemented by
@@ -62,25 +75,6 @@ namespace System.Threading
[CLSCompliant(false)]
[System.Runtime.InteropServices.ComVisible(true)]
unsafe public delegate void IOCompletionCallback(uint errorCode, uint numBytes, NativeOverlapped* pOVERLAP);
}
namespace System.Threading.Microsoft
{
using System.Security;
using System.Runtime.Remoting;
using System.Security.Permissions;
using System;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Diagnostics.CodeAnalysis;
using System.Diagnostics.Tracing;
#if !MONO
using Microsoft.Win32;
#endif
internal static class ThreadPoolGlobals
{
@@ -1373,8 +1367,6 @@ namespace System.Threading.Microsoft
[HostProtection(Synchronization=true, ExternalThreading=true)]
public static class ThreadPool
{
internal static readonly bool UseMicrosoftThreadPool = Environment.GetEnvironmentVariable ("MONO_THREADPOOL") == "microsoft";
#if FEATURE_CORECLR
[System.Security.SecurityCritical] // auto-generated
#else
@@ -1897,6 +1889,7 @@ namespace System.Threading.Microsoft
[MethodImplAttribute(MethodImplOptions.InternalCall)]
private static extern void InitializeVMTp(ref bool enableWorkerTracking);
#if !MONO
[System.Security.SecurityCritical] // auto-generated
[ResourceExposure(ResourceScope.None)]
[MethodImplAttribute(MethodImplOptions.InternalCall)]
@@ -1909,6 +1902,7 @@ namespace System.Threading.Microsoft
ref StackCrawlMark stackMark,
bool compressStack
);
#endif
#if !FEATURE_CORECLR
[System.Security.SecuritySafeCritical] // auto-generated