X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fglobals.c;h=9c1010e726102453809b901912fe608b315eb16f;hb=d8e682fdfb7e8ba067e15aea0f3d1f8d37ca9eb1;hp=7cf1139c2ac7052b9c528ac214a1157b2f49d381;hpb=c2e825e81b3ed9355f7f3e3607cbc0274daaee84;p=sbcl.git diff --git a/src/runtime/globals.c b/src/runtime/globals.c index 7cf1139..9c1010e 100644 --- a/src/runtime/globals.c +++ b/src/runtime/globals.c @@ -17,8 +17,8 @@ #include #include -#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 }