* debug.c: Correctly handle the `debugger_finished_mutex'; it is
only unlocked by the pthread_cond_wait() in mono_debugger_wait().
svn path=/trunk/mono/; revision=10199
+2003-01-06 Martin Baulig <martin@ximian.com>
+
+ * debug.c: Correctly handle the `debugger_finished_mutex'; it is
+ only unlocked by the pthread_cond_wait() in mono_debugger_wait().
+
2003-01-04 Jackson Harper <jackson@latitudegeo.com>
- * debug.c: Move must_send_finished var declaration out of #if win32 block (this fixes the build on win32)
+ * debug.c: Move must_send_finished var declaration out of #if win32
+ block (this fixes the build on win32)
2003-01-05 Martin Baulig <martin@ximian.com>
mono_debugger_wait (void)
{
#ifndef PLATFORM_WIN32
- pthread_mutex_lock (&debugger_finished_mutex);
pthread_cond_wait (&debugger_finished_cond, &debugger_finished_mutex);
- pthread_mutex_unlock (&debugger_finished_mutex);
#endif
}
#ifndef PLATFORM_WIN32
pthread_mutex_lock (&debugger_start_mutex);
+ /*
+ * This mutex is only unlocked by the pthread_cond_wait() in
+ * mono_debugger_wait().
+ */
+ pthread_mutex_lock (&debugger_finished_mutex);
+
ret = pthread_create (&thread, NULL, debugger_thread_func, ptr);
g_assert (ret == 0);