From: Matt Birkholz Date: Sun, 19 Jul 2015 19:17:10 +0000 (-0700) Subject: Make ostty.o state thread-local. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=5d5706d22618fc728a36d9790b0315fdffd84f2a;p=mit-scheme.git Make ostty.o state thread-local. The next_interrupt_char is set by the processor's signal handler and read by Scheme's interrupt handler, which now runs with timer interrupts masked (to keep the handler on the processor with the next_interrupt_char). --- diff --git a/src/microcode/ostty.c b/src/microcode/ostty.c index d0916e5d5..112baae05 100644 --- a/src/microcode/ostty.c +++ b/src/microcode/ostty.c @@ -28,7 +28,7 @@ USA. #include "osscheme.h" #include "prims.h" -static cc_t next_interrupt_char; +static __thread cc_t next_interrupt_char; void tty_set_next_interrupt_char (cc_t c)