[Mono-bugs] [Bug 28721][Min] Changed - cant access thread name at thread startup

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Aug 2002 13:57:57 -0000


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 vargaz@freemail.hu.

http://bugzilla.ximian.com/show_bug.cgi?id=28721

--- shadow/28721	Thu Aug  8 06:07:19 2002
+++ shadow/28721.tmp.12292	Mon Aug 12 09:57:57 2002
@@ -1,14 +1,14 @@
 Bug#: 28721
 Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Minor
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: dietmar@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -19,6 +19,15 @@
 Description of Problem:
 
 If i run thread5.exe it prints "  started" instead of "Thread 1 started"
 
 How often does this happen? 
 always
+
+------- Additional Comments From vargaz@freemail.hu  2002-08-12 09:57 -------
+
+Hi,
+
+This is because the thread constructor creates the thread in a
+suspended state by passing the CREATE_SUSPENDED flag to CreateThread()
+in io-lib/threads.c, where it is promptly ignored, causing the thread to
+start immediately, before its name is set.