1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-29 08:20:20 +02:00

Use the SMOB API in `coop-pthreads.c' rather than low-level primitives.

* libguile/coop-pthreads.c: Include "smob.h".
  (make_thread): Use `SCM_NEWSMOB' rather than `scm_cell'.

git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-32
This commit is contained in:
Ludovic Courtes 2006-05-30 21:23:31 +00:00 committed by Ludovic Courtès
parent bebc45ae90
commit 73e6fc23cd

View file

@ -31,6 +31,7 @@
#include "libguile/eval.h"
#include "libguile/async.h"
#include "libguile/ports.h"
#include "libguile/smob.h"
#undef DEBUG
@ -100,7 +101,8 @@ make_thread (SCM creation_protects)
{
SCM z;
scm_copt_thread *t = scm_gc_malloc (sizeof(*t), "thread");
z = scm_cell (scm_tc16_thread, (scm_t_bits)t);
SCM_NEWSMOB (z, t);
t->handle = z;
t->result = creation_protects;
t->base = NULL;