Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Krell <jay.krell@cornell.edu>2019-05-02 17:25:58 +0300
committerAleksey Kliger (λgeek) <aleksey@xamarin.com>2019-05-02 17:25:58 +0300
commitd371432a1030db86d1ed6afb9bc174fb1587191f (patch)
tree17740f932ae01c4ce2087847cb45258fa411ab11 /mcs/class/referencesource
parent748da2e4a93e820540f857ee8c6d3f752141f4de (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.cs15
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;
+ }
}
}