Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ void IThreadPoolWorkItem.ExecuteWorkItem()
bool setSuccessfully = TrySetResult(true);
Debug.Assert(setSuccessfully, "Should have been able to complete task");
}
//void IThreadPoolWorkItem.MarkAborted(ThreadAbortException tae) { /* nop */ }
}
#endregion

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2353,7 +2353,6 @@ private void Execute()
}
}


/// <summary>
/// IThreadPoolWorkItem override, which is the entry function for this task when the TP scheduler decides to run it.
///
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -597,11 +597,6 @@ void IThreadPoolWorkItem.ExecuteWorkItem()
ExecutionContext.Run(m_capturedContext, GetInvokeActionCallback(), m_action);
}

///// <summary>
///// The ThreadPool calls this if a ThreadAbortException is thrown while trying to execute this workitem.
///// </summary>
//void IThreadPoolWorkItem.MarkAborted(ThreadAbortException tae) { /* nop */ }

/// <summary>Cached delegate that invokes an Action passed as an object parameter.</summary>
private static ContextCallback s_invokeActionCallback;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static void GetAvailableThreads(out int workerThreads, out int completion
/// <summary>
/// This method is called to request a new thread pool worker to handle pending work.
/// </summary>
internal static void QueueDispatch()
internal static void RequestWorkerThread()
{
// For simplicity of the state management, we pre-create all thread pool workers on the first
// request and then use the semaphore to release threads as new requests come in.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ private static void DispatchCallback(IntPtr instance, IntPtr context, IntPtr wor
wrapper.Exit(resetThread: false);
}

internal static void QueueDispatch()
internal static void RequestWorkerThread()
{
if (s_work == IntPtr.Zero)
{
Expand Down
Loading