diff options
author | Jay Krell <jay.krell@cornell.edu> | 2019-05-02 17:25:58 +0300 |
---|---|---|
committer | Aleksey Kliger (λgeek) <aleksey@xamarin.com> | 2019-05-02 17:25:58 +0300 |
commit | d371432a1030db86d1ed6afb9bc174fb1587191f (patch) | |
tree | 17740f932ae01c4ce2087847cb45258fa411ab11 /mcs/class/referencesource | |
parent | 748da2e4a93e820540f857ee8c6d3f752141f4de (diff) |
Move three trivial threadpool icalls to callers. (#14296)
ves_icall_System_Threading_ThreadPool_PostQueuedCompletionStatus
ves_icall_System_Threading_ThreadPool_BindIOCompletionCallbackNative
ves_icall_System_Threading_ThreadPool_IsThreadPoolHosted
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r-- | mcs/class/referencesource/mscorlib/system/threading/threadpool.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs b/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs index d67296a5cb6..9a120e05c46 100644 --- a/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs +++ b/mcs/class/referencesource/mscorlib/system/threading/threadpool.cs @@ -1932,8 +1932,7 @@ namespace System.Threading throw new NotSupportedException(Environment.GetResourceString("Arg_NotSupportedException")); Contract.EndContractBlock(); #endif - - return PostQueuedCompletionStatus(overlapped); + throw new NotImplementedException(""); } [SecurityCritical] @@ -2004,8 +2003,10 @@ namespace System.Threading [System.Security.SecurityCritical] // auto-generated // [ResourceExposure(ResourceScope.None)] - [MethodImplAttribute(MethodImplOptions.InternalCall)] - internal static extern bool IsThreadPoolHosted(); + internal static bool IsThreadPoolHosted() + { + return false; + } [System.Security.SecurityCritical] // auto-generated // [ResourceExposure(ResourceScope.None)] @@ -2074,8 +2075,10 @@ namespace System.Threading [System.Security.SecurityCritical] // auto-generated // [ResourceExposure(ResourceScope.None)] - [MethodImplAttribute(MethodImplOptions.InternalCall)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] - private static extern bool BindIOCompletionCallbackNative(IntPtr fileHandle); + private static bool BindIOCompletionCallbackNative(IntPtr fileHandle) + { + return true; + } } } |