summaryrefslogtreecommitdiff
path: root/libguile/threads.h
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2018-06-27 18:21:04 +0200
committerAndy Wingo <wingo@pobox.com>2018-06-27 18:21:04 +0200
commit18431e6e63243eebefa3e77684d7b75e69c0fcb5 (patch)
tree9d96e3884db7276af43bdf72fcf515473db824f5 /libguile/threads.h
parentfd4eb1475106c4b8140634955e336a012787e28a (diff)
downloadguile-18431e6e63243eebefa3e77684d7b75e69c0fcb5.tar.gz
Refactor handling of active VM registers
* libguile/threads.h (scm_thread): Remove unused jmp_buf regs member. * libguile/vm.h (struct scm_vm): Rename resumable_prompt_cookie to just "registers"; we know it's a jmp_buf pointer. * libguile/vm.c (scm_call_n): * libguile/throw.c (catch): * libguile/eval.c (eval): * libguile/control.c (scm_suspendable_continuation_p): Adapt to cookie renaming.
Diffstat (limited to 'libguile/threads.h')
-rw-r--r--libguile/threads.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/libguile/threads.h b/libguile/threads.h
index 5ed4c65d2..733b6dbf2 100644
--- a/libguile/threads.h
+++ b/libguile/threads.h
@@ -22,8 +22,6 @@
-#include <setjmp.h>
-
#include "libguile/procs.h"
#include "libguile/throw.h"
#include "libguile/dynstack.h"
@@ -101,10 +99,9 @@ struct scm_thread {
SCM continuation_root;
SCM_STACKITEM *continuation_base;
- /* For keeping track of the stack and registers. */
+ /* VM state for this thread. */
struct scm_vm vm;
SCM_STACKITEM *base;
- jmp_buf regs;
};
#define SCM_I_IS_THREAD(x) SCM_SMOB_PREDICATE (scm_tc16_thread, x)