Author: lupus
Date: 2005-04-19 09:55:08 -0400 (Tue, 19 Apr 2005)
New Revision: 43257
Modified:
trunk/mono/mono/io-layer/ChangeLog
trunk/mono/mono/io-layer/threads.c
Log:
Tue Apr 19 16:25:47 CEST 2005 Paolo Molaro <[EMAIL PROTECTED]>
* threads.c: fix lookup of the thread id in the has table:
always use the id value, not the pointer to the id.
Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog 2005-04-19 13:49:53 UTC (rev 43256)
+++ trunk/mono/mono/io-layer/ChangeLog 2005-04-19 13:55:08 UTC (rev 43257)
@@ -1,3 +1,9 @@
+
+Tue Apr 19 16:25:47 CEST 2005 Paolo Molaro <[EMAIL PROTECTED]>
+
+ * threads.c: fix lookup of the thread id in the has table:
+ always use the id value, not the pointer to the id.
+
2005-04-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* handles.c: fix handle returned in _wapi_handle_search_handle. Dick
Modified: trunk/mono/mono/io-layer/threads.c
===================================================================
--- trunk/mono/mono/io-layer/threads.c 2005-04-19 13:49:53 UTC (rev 43256)
+++ trunk/mono/mono/io-layer/threads.c 2005-04-19 13:55:08 UTC (rev 43257)
@@ -160,7 +160,7 @@
thr_ret = mono_mutex_lock(&thread_hash_mutex);
g_assert (thr_ret == 0);
- g_hash_table_remove(thread_hash, &thread_handle->thread->id);
+ g_hash_table_remove (thread_hash, GUINT_TO_POINTER
(thread_handle->thread->id));
thr_ret = mono_mutex_unlock(&thread_hash_mutex);
g_assert (thr_ret == 0);
@@ -291,7 +291,7 @@
*/
_wapi_handle_ref (handle);
- g_hash_table_insert (thread_hash, &thread_handle.thread->id, handle);
+ g_hash_table_insert (thread_hash, GUINT_TO_POINTER
(thread_handle.thread->id), handle);
#ifdef DEBUG
g_message("%s: Started thread handle %p thread %p ID %ld", __func__,
@@ -331,7 +331,7 @@
thr_ret = mono_mutex_lock(&thread_hash_mutex);
g_assert (thr_ret == 0);
- ret=g_hash_table_lookup(thread_hash, &tid);
+ ret = g_hash_table_lookup (thread_hash, GUINT_TO_POINTER (tid));
thr_ret = mono_mutex_unlock(&thread_hash_mutex);
g_assert (thr_ret == 0);
@@ -484,7 +484,7 @@
*/
_wapi_handle_ref (handle);
- g_hash_table_insert (thread_hash, &thread_handle.thread->id, handle);
+ g_hash_table_insert (thread_hash, GUINT_TO_POINTER
(thread_handle.thread->id), handle);
#ifdef DEBUG
g_message("%s: Attached thread handle %p thread %p ID %ld", __func__,
@@ -534,7 +534,7 @@
thr_ret = mono_mutex_lock(&thread_hash_mutex);
g_assert (thr_ret == 0);
- ret=g_hash_table_lookup(thread_hash, &tid);
+ ret = g_hash_table_lookup (thread_hash, GUINT_TO_POINTER (tid));
thr_ret = mono_mutex_unlock(&thread_hash_mutex);
g_assert (thr_ret == 0);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches