OSDN Git Service

2004-08-04 Paolo Bonzini <gcc@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git] / boehm-gc / solaris_pthreads.c
index 97ab13b..bae7719 100644 (file)
 /*
  * 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(_SOLARIS_PTHREADS)
-# include "gc_priv.h"
+# if defined(GC_SOLARIS_PTHREADS)
+# include "private/gc_priv.h"
 # include <pthread.h>
 # include <thread.h>
 # include <signal.h>
@@ -35,7 +34,7 @@
 # define _CLASSIC_XOPEN_TYPES
 # include <unistd.h>
 # include <errno.h>
-# include "solaris_threads.h"
+# include "private/solaris_threads.h"
 # include <stdio.h>
 
 #undef pthread_join
@@ -88,8 +87,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 +174,5 @@ GC_pthread_create(pthread_t *new_thread,
   int GC_no_sunOS_pthreads;
 #endif
 
-# endif /* SOLARIS_THREADS */
+# endif /* GC_SOLARIS_PTHREADS */