* solaris_threads.c (GC_thread_is_registered): Add this for solaris
too.
svn path=/trunk/mono/; revision=41594
2005-03-09 Zoltan Varga <vargaz@freemail.hu>
+ * solaris_threads.c (GC_thread_is_registered): Add this for solaris
+ too.
+
* pthread_support.c (GC_thread_is_registered): Move this outside of
the #ifdef THREAD_LOCAL_ALLOC.
return(p);
}
+int GC_thread_is_registered (void)
+{
+ void *ptr;
+
+ LOCK();
+ ptr = (void *)GC_lookup_thread(thr_self());
+ UNLOCK();
+
+ return ptr ? 1 : 0;
+}
+
/* Solaris 2/Intel uses an initial stack size limit slightly bigger than the
SPARC default of 8 MB. Account for this to warn only if the user has
raised the limit beyond the default.