[Mono-bugs] [Bug 82700][Nor] Changed - [PATCH] Thread.ManagedThreadId changes after a thread starts
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Sep 4 22:34:36 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by jlarimer at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82700
--- shadow/82700 2007-09-04 22:34:04.000000000 -0400
+++ shadow/82700.tmp.6257 2007-09-04 22:34:36.000000000 -0400
@@ -99,6 +99,11 @@
The attached patch gives threads a unique ID (at least it's unique until
the Interlocked.Increment() call wraps). The patch also fixes GetHashCode
to return the ManagedThreadId value. This is not required by the MS docs,
but it is the observed behavior of the MS.NET 2.0 framework. I actually
found this bug by noticing the result from GetHashCode() was changing after
the thread started.
+
+------- Additional Comments From jlarimer at gmail.com 2007-09-04 22:34 -------
+Created an attachment (id=19969)
+Proposed patch
+
More information about the mono-bugs
mailing list