#include "globals.h"
#include "runtime.h"
#include "os.h"
-#include "interrupt.h"
#ifdef LISP_FEATURE_GENCGC
#include "gencgc-alloc-region.h"
#else
#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))
pthread_mutex_unlock(thread->state_lock);
}
+extern pthread_key_t lisp_thread;
#endif
extern int kill_safely(os_thread_t os_thread, int signal);
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