Browse Source

2003-01-06 Martin Baulig <[email protected]>

	* debug.c (debugger_finished_mutex): Use a recursive mutex here.

svn path=/trunk/mono/; revision=10202
Martin Baulig 23 years ago
parent
commit
b28320f23e
2 changed files with 3 additions and 1 deletions
  1. 2 0
      mono/jit/ChangeLog
  2. 1 1
      mono/jit/debug.c

+ 2 - 0
mono/jit/ChangeLog

@@ -1,5 +1,7 @@
 2003-01-06  Martin Baulig  <[email protected]>
 
+	* 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().
 

+ 1 - 1
mono/jit/debug.c

@@ -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;