* include/gc_pthread_redirects.h (pthread_detach): Override pthread_detach too.
* solaris_pthreads.c (GC_pthread_detach): Override pthread_detach too. Fixes
#74223.
svn path=/trunk/mono/; revision=42606
+2005-04-06 Zoltan Varga <vargaz@freemail.hu>
+
+ * include/gc_pthread_redirects.h (pthread_detach): Override pthread_detach too.
+
+ * solaris_pthreads.c (GC_pthread_detach): Override pthread_detach too. Fixes
+ #74223.
+
2005-03-29 Zoltan Varga <vargaz@freemail.hu>
* os_dep.c: Add ability to fall back to mmap-ing memory when sbrk
const pthread_attr_t *attr,
void * (*thread_execp)(void *), void *arg);
extern int GC_pthread_join(pthread_t wait_for, void **status);
+ extern int GC_pthread_detach(pthread_t thread);
# define pthread_join GC_pthread_join
# define pthread_create GC_pthread_create
+# define pthread_detach GC_pthread_detach
#endif
#if defined(GC_SOLARIS_PTHREADS) || defined(GC_SOLARIS_THREADS)
return GC_thr_join((thread_t)wait_for, NULL, status);
}
+int GC_pthread_detach(pthread_t thread)
+{
+ GC_thread t = GC_lookup_thread(thread);
+
+ if (t) {
+ t->flags |= DETACHED;
+ return 0;
+ }
+ else
+ return pthread_detach(thread);
+}
int
GC_pthread_create(pthread_t *new_thread,