2002-12-16 Mikael Djurfeldt <djurfeldt@nada.kth.se>
+ * threads.c (scm_thread): Removed filed joining_threads.
+ (thread_print): Print thread number as well as address of thread
+ structure.
+
* pthread-threads.c, pthread-threads.h, threads.c: Fixes to
pthread "native" recursive mutex support.
SCM result;
int exited;
- SCM joining_threads;
-
/* For keeping track of the stack and registers. */
SCM_STACKITEM *base;
SCM_STACKITEM *top;
t->handle = z;
t->result = creation_protects;
t->base = NULL;
- t->joining_threads = make_queue ();
scm_i_plugin_cond_init (&t->sleep_cond, 0);
scm_i_plugin_mutex_init (&t->heap_mutex, &scm_i_plugin_mutex);
t->clear_freelists_p = 0;
{
scm_thread *t = SCM_THREAD_DATA (obj);
scm_gc_mark (t->result);
- scm_gc_mark (t->joining_threads);
return t->root->handle; /* mark root-state of this thread */
}
{
scm_thread *t = SCM_THREAD_DATA (exp);
scm_puts ("#<thread ", port);
+ scm_intprint ((unsigned long)t->thread, 10, port);
+ scm_puts (" (", port);
scm_intprint ((unsigned long)t, 16, port);
- scm_putc ('>', port);
+ scm_puts (")>", port);
return 1;
}