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

Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unnecessary explicit static cctors
Let these types be marked beforefieldinit
  • Loading branch information
stephentoub committed Feb 1, 2017
commit 6f4432b69f4aff9c47e693b1b9334897b448ab32
10 changes: 0 additions & 10 deletions src/mscorlib/src/System/Threading/ThreadPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ internal static class ThreadPoolGlobals
public static bool enableWorkerTracking;

public static readonly ThreadPoolWorkQueue workQueue = new ThreadPoolWorkQueue();

static ThreadPoolGlobals()
{
}
}

internal sealed class ThreadPoolWorkQueue
Expand Down Expand Up @@ -969,8 +965,6 @@ internal interface IThreadPoolWorkItem

internal sealed class QueueUserWorkItemCallback : IThreadPoolWorkItem
{
static QueueUserWorkItemCallback() {}

private WaitCallback callback;
private ExecutionContext context;
private Object state;
Expand Down Expand Up @@ -1041,8 +1035,6 @@ static private void WaitCallback_Context(Object state)

internal sealed class QueueUserWorkItemCallbackDefaultContext : IThreadPoolWorkItem
{
static QueueUserWorkItemCallbackDefaultContext() { }

private WaitCallback callback;
private Object state;

Expand Down Expand Up @@ -1102,8 +1094,6 @@ static private void WaitCallback_Context(Object state)

internal class _ThreadPoolWaitOrTimerCallback
{
static _ThreadPoolWaitOrTimerCallback() {}

WaitOrTimerCallback _waitOrTimerCallback;
ExecutionContext _executionContext;
Object _state;
Expand Down