System.Data/DataRow.cs: AcceptChanges: raise row changing & row changed events.
[mono.git] / libgc / solaris_threads.c
index 5f05b19e008040b208a691864ad3e31c6125e047..0af78055e7da66fd3cb9971546a6ff7e851f239c 100644 (file)
@@ -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.