Expose generic UnsafeQueueUserWorkItem (dotnet/coreclr#21125)
authorStephen Toub <stoub@microsoft.com>
Wed, 21 Nov 2018 00:52:08 +0000 (19:52 -0500)
committerGitHub <noreply@github.com>
Wed, 21 Nov 2018 00:52:08 +0000 (19:52 -0500)
Commit migrated from https://github.com/dotnet/coreclr/commit/432cd0bc1410a1d2e721f729f93cbd27744ef354

src/coreclr/src/System.Private.CoreLib/src/System/Threading/ThreadPool.cs

index 564db93..5026003 100644 (file)
@@ -1326,8 +1326,7 @@ namespace System.Threading
             return true;
         }
 
-        // TODO: https://github.com/dotnet/corefx/issues/32547. Make public.
-        internal static bool UnsafeQueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal)
+        public static bool UnsafeQueueUserWorkItem<TState>(Action<TState> callBack, TState state, bool preferLocal)
         {
             if (callBack == null)
             {