diff options
author | Andy Wingo <wingo@pobox.com> | 2018-06-24 08:59:42 +0200 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2018-06-24 08:59:42 +0200 |
commit | 2480761bde7d55ef05cc11eb49902ede84c70a0a (patch) | |
tree | dfd5fb3ba9411d2c250fcc7d15874e119bdf3f0e /libguile/threads.h | |
parent | aad5bfed6017deb5725cf779f8a103bcc7658e94 (diff) | |
download | guile-2480761bde7d55ef05cc11eb49902ede84c70a0a.tar.gz |
Inline struct scm_vm into struct scm_i_thread
* libguile/threads.h (scm_i_thread): Inline struct scm_vm into struct
scm_i_thread, as these exist in a one-to-one relationship.
* libguile/threads.c (guilify_self_1, thread_mark, on_thread_exit):
* libguile/control.c (scm_suspendable_continuation_p):
* libguile/vm.c (init_vm, thread_vm): Adapt users.
Diffstat (limited to 'libguile/threads.h')
-rw-r--r-- | libguile/threads.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/threads.h b/libguile/threads.h index 151c27b55..6cbab2a10 100644 --- a/libguile/threads.h +++ b/libguile/threads.h @@ -30,6 +30,7 @@ #include "libguile/iselect.h" #include "libguile/smob.h" #include "libguile/continuations.h" +#include "libguile/vm.h" #if SCM_USE_PTHREAD_THREADS #include "libguile/pthread-threads.h" @@ -102,7 +103,7 @@ typedef struct scm_i_thread { SCM_STACKITEM *continuation_base; /* For keeping track of the stack and registers. */ - struct scm_vm *vp; + struct scm_vm vm; SCM_STACKITEM *base; jmp_buf regs; } scm_i_thread; |