Author: gonzalo
Date: 2005-04-07 19:47:56 -0400 (Thu, 07 Apr 2005)
New Revision: 42664

Modified:
   trunk/mcs/class/corlib/System.Threading/ChangeLog
   trunk/mcs/class/corlib/System.Threading/Thread.cs
Log:
2005-04-07 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * Thread.cs: clear the Unstarted bit before calling Start_internal.
        Fixes bug #72738.



Modified: trunk/mcs/class/corlib/System.Threading/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Threading/ChangeLog   2005-04-07 23:00:24 UTC 
(rev 42663)
+++ trunk/mcs/class/corlib/System.Threading/ChangeLog   2005-04-07 23:47:56 UTC 
(rev 42664)
@@ -1,3 +1,8 @@
+2005-04-07 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * Thread.cs: clear the Unstarted bit before calling Start_internal.
+       Fixes bug #72738.
+
 2005-04-04  Ben Maurer  <[EMAIL PROTECTED]>
 
        * Thread.cs: Do argument checking for Current[UI]Culture to make

Modified: trunk/mcs/class/corlib/System.Threading/Thread.cs
===================================================================
--- trunk/mcs/class/corlib/System.Threading/Thread.cs   2005-04-07 23:00:24 UTC 
(rev 42663)
+++ trunk/mcs/class/corlib/System.Threading/Thread.cs   2005-04-07 23:47:56 UTC 
(rev 42664)
@@ -658,14 +658,14 @@
                                        throw new SystemException ("Thread 
creation failed");
                                }
 
-                               // Launch this thread
-                               Start_internal(system_thread_handle);
-
                                // Mark the thread state as Running
                                // (which is all bits
                                // cleared). Therefore just remove the
                                // Unstarted bit
                                clr_state(ThreadState.Unstarted);
+
+                               // Launch this thread
+                               Start_internal(system_thread_handle);
                        }
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to