2003-01-06 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Mon, 6 Jan 2003 14:03:43 +0000 (14:03 -0000)
committerMartin Baulig <martin@novell.com>
Mon, 6 Jan 2003 14:03:43 +0000 (14:03 -0000)
* debug.c (debugger_finished_mutex): Use a recursive mutex here.

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

mono/jit/ChangeLog
mono/jit/debug.c

index 1d25fb66ac92a2c9d1140a965d38a4811a24c83f..f8b495cf3451fa99d7ca760b10305338844a1070 100644 (file)
@@ -1,5 +1,7 @@
 2003-01-06  Martin Baulig  <martin@ximian.com>
 
+       * debug.c (debugger_finished_mutex): Use a recursive mutex here.
+
        * debug.c: Correctly handle the `debugger_finished_mutex'; it is
        only unlocked by the pthread_cond_wait() in mono_debugger_wait().
 
index 0ffde64565772c93d696a2d5db6d641a441d41dd..b1eb7a07699b6b7b0739c16fe4c3976c6b8e176b 100644 (file)
@@ -39,7 +39,7 @@ static gconstpointer debugger_notification_address = NULL;
 static pthread_cond_t debugger_thread_cond = PTHREAD_COND_INITIALIZER;
 static pthread_mutex_t debugger_thread_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 static pthread_cond_t debugger_finished_cond = PTHREAD_COND_INITIALIZER;
-static pthread_mutex_t debugger_finished_mutex = PTHREAD_MUTEX_INITIALIZER;
+static pthread_mutex_t debugger_finished_mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
 static pthread_cond_t debugger_start_cond = PTHREAD_COND_INITIALIZER;
 static pthread_mutex_t debugger_start_mutex = PTHREAD_MUTEX_INITIALIZER;
 static gboolean debugger_signalled = FALSE;