X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fruntime%2Fthread.h;h=eb653c12d8e83b57e9bdf1705100939d6d66709b;hb=743831e679b673a5680a0afd8402911516bf50e2;hp=306d133fa45018b8a43b0d51c5ca03297051c78a;hpb=dca9c046b59d56ecddf36169f6994119ef8aeace;p=sbcl.git diff --git a/src/runtime/thread.h b/src/runtime/thread.h index 306d133..eb653c1 100644 --- a/src/runtime/thread.h +++ b/src/runtime/thread.h @@ -8,7 +8,6 @@ #include "globals.h" #include "runtime.h" #include "os.h" -#include "interrupt.h" #ifdef LISP_FEATURE_GENCGC #include "gencgc-alloc-region.h" #else @@ -18,6 +17,7 @@ struct alloc_region { }; #include "genesis/static-symbols.h" #include "genesis/thread.h" #include "genesis/fdefn.h" +#include "interrupt.h" #define STATE_RUNNING (make_fixnum(1)) #define STATE_SUSPENDED (make_fixnum(2)) @@ -54,6 +54,7 @@ wait_for_thread_state_change(struct thread *thread, lispobj state) pthread_mutex_unlock(thread->state_lock); } +extern pthread_key_t lisp_thread; #endif extern int kill_safely(os_thread_t os_thread, int signal); @@ -169,13 +170,6 @@ StaticSymbolFunction(lispobj sym) return ((struct fdefn *)native_pointer(SymbolValue(sym, 0)))->fun; } -static inline -os_context_t *get_interrupt_context_for_thread(struct thread *th) -{ - return th->interrupt_contexts - [fixnum_value(SymbolValue(FREE_INTERRUPT_CONTEXT_INDEX,th)-1)]; -} - #if defined(LISP_FEATURE_SB_THREAD) && defined(LISP_FEATURE_GCC_TLS) extern __thread struct thread *current_thread; #endif