* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.
svn path=/trunk/mono/; revision=41593
+2005-03-09 Zoltan Varga <vargaz@freemail.hu>
+
+ * pthread_support.c (GC_thread_is_registered): Move this outside of
+ the #ifdef THREAD_LOCAL_ALLOC.
+
2005-03-03 Zoltan Varga <vargaz@freemail.hu>
* include/gc.h pthread_support.c win32_threads.: Add
# 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
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 */