Explorar o código

2004-10-07 Zoltan Varga <[email protected]>

	* threads.c (mono_thread_attach): Initialize synch_lock field so
	mono_thread_detach works again.

svn path=/trunk/mono/; revision=34787
Zoltan Varga %!s(int64=21) %!d(string=hai) anos
pai
achega
548d7f954f
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  1. 3 0
      mono/metadata/ChangeLog
  2. 1 0
      mono/metadata/threads.c

+ 3 - 0
mono/metadata/ChangeLog

@@ -1,5 +1,8 @@
 2004-10-07  Zoltan Varga  <[email protected]>
 
+	* threads.c (mono_thread_attach): Initialize synch_lock field so
+	mono_thread_detach works again.
+
 	* loader.c (mono_lookup_pinvoke_call): Try the dllname prefixed with
 	'lib' too. Fixes #63130.
 

+ 1 - 0
mono/metadata/threads.c

@@ -378,6 +378,7 @@ mono_thread_attach (MonoDomain *domain)
 
 	thread->handle=thread_handle;
 	thread->tid=tid;
+	thread->synch_lock=mono_object_new (domain, mono_defaults.object_class);
 
 #ifdef THREAD_DEBUG
 	g_message(G_GNUC_PRETTY_FUNCTION ": Attached thread ID %d (handle %p)",