mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 22:10:21 +02:00
(scm_i_thread): Added gc_running_p field.
(guilify_self_1): Initialize it.
This commit is contained in:
parent
fc240b46e9
commit
1a8fdd7e12
2 changed files with 3 additions and 0 deletions
|
@ -300,6 +300,7 @@ guilify_self_1 (SCM_STACKITEM *base)
|
||||||
pipe (t->sleep_pipe);
|
pipe (t->sleep_pipe);
|
||||||
scm_i_pthread_mutex_init (&t->heap_mutex, NULL);
|
scm_i_pthread_mutex_init (&t->heap_mutex, NULL);
|
||||||
t->clear_freelists_p = 0;
|
t->clear_freelists_p = 0;
|
||||||
|
t->gc_running_p = 0;
|
||||||
t->exited = 0;
|
t->exited = 0;
|
||||||
|
|
||||||
t->freelist = SCM_EOL;
|
t->freelist = SCM_EOL;
|
||||||
|
|
|
@ -69,6 +69,8 @@ typedef struct scm_i_thread {
|
||||||
*/
|
*/
|
||||||
SCM freelist, freelist2;
|
SCM freelist, freelist2;
|
||||||
int clear_freelists_p; /* set if GC was done while thread was asleep */
|
int clear_freelists_p; /* set if GC was done while thread was asleep */
|
||||||
|
int gc_running_p; /* non-zero while this thread does GC or a
|
||||||
|
sweep. */
|
||||||
|
|
||||||
/* Other thread local things.
|
/* Other thread local things.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue