Rename System.Threading.Thread.m_ManagedThreadId to System.Threading.Thread._ManagedT...
authorAndrew Au <cshung@gmail.com>
Sat, 19 Aug 2017 03:04:37 +0000 (20:04 -0700)
committerGitHub <noreply@github.com>
Sat, 19 Aug 2017 03:04:37 +0000 (20:04 -0700)
Rename System.Threading.Thread.m_ManagedThreadId to System.Threading.Thread._ManagedThreadId to align with CoreRT implementation

src/mscorlib/MembersMustExist.AnalyzerData [new file with mode: 0644]
src/mscorlib/src/System/Threading/Thread.cs

diff --git a/src/mscorlib/MembersMustExist.AnalyzerData b/src/mscorlib/MembersMustExist.AnalyzerData
new file mode 100644 (file)
index 0000000..b5e7a6d
--- /dev/null
@@ -0,0 +1,3 @@
+# Visual Studio
+private int System.Threading.Thread._managedThreadId
+
index 84c5ebb..d8ea641 100644 (file)
@@ -128,7 +128,12 @@ namespace System.Threading
 
         private IntPtr DONT_USE_InternalThread;        // Pointer
         private int m_Priority;                     // INT32
-        private int m_ManagedThreadId;              // INT32
+
+        // The following field is required for interop with the VS Debugger
+        // Prior to making any changes to this field, please reach out to the VS Debugger 
+        // team to make sure that your changes are not going to prevent the debugger
+        // from working.
+        private int _managedThreadId;              // INT32
 
 #pragma warning restore 414
 #pragma warning restore 169
@@ -200,7 +205,7 @@ namespace System.Threading
 
         public override int GetHashCode()
         {
-            return m_ManagedThreadId;
+            return _managedThreadId;
         }
 
         extern public new int ManagedThreadId