mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-04 00:30:30 +02:00
Minor scm_thread refactoring
* libguile/threads.h (scm_thread): Move stack base to be closer to related fields, and add a comment for why it's there.
This commit is contained in:
parent
18431e6e63
commit
154a5de3d7
1 changed files with 3 additions and 1 deletions
|
@ -99,9 +99,11 @@ struct scm_thread {
|
||||||
SCM continuation_root;
|
SCM continuation_root;
|
||||||
SCM_STACKITEM *continuation_base;
|
SCM_STACKITEM *continuation_base;
|
||||||
|
|
||||||
|
/* Stack base. Used when checking for C stack overflow. */
|
||||||
|
SCM_STACKITEM *base;
|
||||||
|
|
||||||
/* VM state for this thread. */
|
/* VM state for this thread. */
|
||||||
struct scm_vm vm;
|
struct scm_vm vm;
|
||||||
SCM_STACKITEM *base;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#define SCM_I_IS_THREAD(x) SCM_SMOB_PREDICATE (scm_tc16_thread, x)
|
#define SCM_I_IS_THREAD(x) SCM_SMOB_PREDICATE (scm_tc16_thread, x)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue