X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=libgc%2Fsolaris_threads.c;h=0af78055e7da66fd3cb9971546a6ff7e851f239c;hb=fa9497124731582cfdd1ee4522390c7c5bad0444;hp=5f05b19e008040b208a691864ad3e31c6125e047;hpb=6a1600a60f806f0dd77f0c2e8deb6101bef408fe;p=mono.git diff --git a/libgc/solaris_threads.c b/libgc/solaris_threads.c index 5f05b19e008..0af78055e7d 100644 --- a/libgc/solaris_threads.c +++ b/libgc/solaris_threads.c @@ -624,6 +624,17 @@ GC_thread GC_lookup_thread(thread_t id) 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.