2009-10-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 2 Oct 2009 13:46:45 +0000 (13:46 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Fri, 2 Oct 2009 13:46:45 +0000 (13:46 -0000)
* threadpool.c: forgot a LeaveCriticalSection when telling the idle
threads to die because we're shutting down. delgate5.exe works again.

svn path=/trunk/mono/; revision=143284

mono/metadata/ChangeLog
mono/metadata/threadpool.c

index 104c5dbabdea50c0a23e552f0129c78fc87067cf..97bbb26696b67a5922b70583c6ff5a34d503f7ff 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-02 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+       * threadpool.c: forgot a LeaveCriticalSection when telling the idle
+       threads to die because we're shutting down. delgate5.exe works again.
+
 2009-10-01  Bill Holmes  <billholmes54@gmail.com>
 
        * cominterop.c (mono_marshal_free_ccw_entry): Updating the
index 2a8d49bfe405a547477e0897196dd68663bdba12..31cff79ad63f19df86ae3744bf0fb8f0cffdb081 100644 (file)
@@ -1289,6 +1289,7 @@ threadpool_queue_idle_thread (ThreadPool *tp, IdleThreadData *it)
        EnterCriticalSection (cs);
        if (tp->idle_threads == NULL) {
                it->die = TRUE;
+               LeaveCriticalSection (cs);
                return NULL; /* We are shutting down */
        }
        /*