* debug.c (debugger_finished_mutex): Use a recursive mutex here.
svn path=/trunk/mono/; revision=10202
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().
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;