guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guile + pthreads + reentrancy?


From: Marius Vollmer
Subject: Re: Guile + pthreads + reentrancy?
Date: Sun, 21 Mar 2004 00:02:39 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

address@hidden writes:

> I'm now converting my code to use scm_spawn_thread instead of
> pthread_create.  This is not a problem, but there doesn't seem to be
> any public interface to get a scm_t_thread out of the SCM object.

This shouldn't be necessary, scm_t_thread is 'internal'.

> This is a serious problem because even functions such as
> scm_thread_join take scm_t_thread arguments, and are thus unusable
> outside of Guile.

Use scm_join_thread, which takes a SCM thread object.

The docs need some work, probably...

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]