Author: zoltan
Date: 2005-03-09 06:00:00 -0500 (Wed, 09 Mar 2005)
New Revision: 41593
Modified:
trunk/mono/libgc/ChangeLog
trunk/mono/libgc/pthread_support.c
Log:
2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.
Modified: trunk/mono/libgc/ChangeLog
===================================================================
--- trunk/mono/libgc/ChangeLog 2005-03-09 10:50:37 UTC (rev 41592)
+++ trunk/mono/libgc/ChangeLog 2005-03-09 11:00:00 UTC (rev 41593)
@@ -1,3 +1,8 @@
+2005-03-09 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * pthread_support.c (GC_thread_is_registered): Move this outside of
+ the #ifdef THREAD_LOCAL_ALLOC.
+
2005-03-03 Zoltan Varga <[EMAIL PROTECTED]>
* include/gc.h pthread_support.c win32_threads.: Add
Modified: trunk/mono/libgc/pthread_support.c
===================================================================
--- trunk/mono/libgc/pthread_support.c 2005-03-09 10:50:37 UTC (rev 41592)
+++ trunk/mono/libgc/pthread_support.c 2005-03-09 11:00:00 UTC (rev 41593)
@@ -442,17 +442,6 @@
# endif /* !THREAD_LOCAL_ALLOC */
-int GC_thread_is_registered (void)
-{
- void *ptr;
-
- LOCK();
- ptr = (void *)GC_lookup_thread(pthread_self());
- UNLOCK();
-
- return ptr ? 1 : 0;
-}
-
#if 0
/*
To make sure that we're using LinuxThreads and not some other thread
@@ -687,6 +676,17 @@
return(p);
}
+int GC_thread_is_registered (void)
+{
+ void *ptr;
+
+ LOCK();
+ ptr = (void *)GC_lookup_thread(pthread_self());
+ UNLOCK();
+
+ return ptr ? 1 : 0;
+}
+
#ifdef HANDLE_FORK
/* Remove all entries from the GC_threads table, except the */
/* one for the current thread. We need to do this in the child */
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches