0.9.1.59:
[sbcl.git] / src / runtime / globals.c
index 7cf1139..9c1010e 100644 (file)
@@ -17,8 +17,8 @@
 #include <sys/types.h>
 #include <unistd.h>
 
-#include "runtime.h"
 #include "sbcl.h"
+#include "runtime.h"
 #include "globals.h"
 #include "validate.h"
 
@@ -42,7 +42,6 @@ lispobj *current_auto_gc_trigger;
 #endif
 
 #ifdef LISP_FEATURE_SB_THREAD
-pid_t parent_pid;
 boolean stop_the_world=0;
 #endif
 
@@ -51,6 +50,10 @@ boolean stop_the_world=0;
  * is done).  For the GENCGC, it always points to DYNAMIC_SPACE_START. */
 lispobj *current_dynamic_space;
 
+#if defined(LISP_FEATURE_SB_THREAD)
+pthread_key_t specials=0;
+#endif
+
 void globals_init(void)
 {
     /* Space, stack, and free pointer vars are initialized by
@@ -64,7 +67,7 @@ void globals_init(void)
 
     /* Set foreign function call active. */
     foreign_function_call_active = 1;
-#ifdef LISP_FEATURE_SB_THREAD
-    parent_pid=getpid();
-#endif
+#if defined(LISP_FEATURE_SB_THREAD)
+    pthread_key_create(&specials,0);
+#endif    
 }