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 <jaykrell@microsoft.com>2019-07-31 19:30:50 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-07-31 19:30:50 +0300
commit499a02d6a14edb90263023a452df439f5ab5bd05 (patch)
tree3e89fe7b4924883248801e698f92a8c17b217ff6 /netcore
parent9acd4c8004852aa0d2589e78fcfb86c4cf2459f8 (diff)
Cleanup and resynchronize Thread/InternalThread fields. (#15910)
- Remove unused. - Add missing that just happened to work. - Synchronize size between netcore and regular. `#if` considered bad. Extracted from https://github.com/mono/mono/pull/15859.
Diffstat (limited to 'netcore')
-rw-r--r--netcore/System.Private.CoreLib/src/System.Threading/Thread.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/netcore/System.Private.CoreLib/src/System.Threading/Thread.cs b/netcore/System.Private.CoreLib/src/System.Threading/Thread.cs
index cfd9827d51b..41bce710f7d 100644
--- a/netcore/System.Private.CoreLib/src/System.Threading/Thread.cs
+++ b/netcore/System.Private.CoreLib/src/System.Threading/Thread.cs
@@ -20,7 +20,6 @@ namespace System.Threading
// stores a thread handle
IntPtr handle;
IntPtr native_handle; // used only on Win32
- IntPtr unused3;
/* accessed only from unmanaged code */
private IntPtr name;
private int name_len;
@@ -50,7 +49,6 @@ namespace System.Threading
internal int managed_id;
private int small_id;
private IntPtr manage_callback;
- private IntPtr unused4;
private IntPtr flags;
private IntPtr thread_pinning_ref;
private IntPtr abort_protected_block_count;
@@ -59,6 +57,7 @@ namespace System.Threading
private IntPtr suspended_event;
private int self_suspended;
private IntPtr thread_state;
+
private Thread self;
private object pending_exception;
private object start_obj;