X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=boehm-gc%2Fsolaris_pthreads.c;h=d604b6ec51a4673108a236422187ea4aa32c9498;hb=f328f11820556893810c2869925cc3f6ba1d1f5a;hp=c7359e24b7f56e725d784ec5503f21e76de63259;hpb=f8c1da573b1b2b72501630f18fc1452e6b9e9c0c;p=pf3gnuchains%2Fgcc-fork.git diff --git a/boehm-gc/solaris_pthreads.c b/boehm-gc/solaris_pthreads.c index c7359e24b7f..d604b6ec51a 100644 --- a/boehm-gc/solaris_pthreads.c +++ b/boehm-gc/solaris_pthreads.c @@ -13,12 +13,12 @@ /* * Support code for Solaris threads. Provides functionality we wish Sun * had provided. Relies on some information we probably shouldn't rely on. - * Modified Peter C. for Solaris Posix Threads. + * Modified by Peter C. for Solaris Posix Threads. */ -/* Boehm, September 14, 1994 4:44 pm PDT */ -# if defined(GC_SOLARIS_PTHREADS) || defined(_SOLARIS_PTHREADS) # include "private/gc_priv.h" + +# if defined(GC_SOLARIS_PTHREADS) # include # include # include @@ -88,8 +88,8 @@ GC_pthread_create(pthread_t *new_thread, } LOCK(); - if (!GC_thr_initialized) { - GC_thr_init(); + if (!GC_is_initialized) { + GC_init_inner(); } GC_multithreaded++; @@ -175,5 +175,5 @@ GC_pthread_create(pthread_t *new_thread, int GC_no_sunOS_pthreads; #endif -# endif /* SOLARIS_THREADS */ +# endif /* GC_SOLARIS_PTHREADS */