[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Guile + pthreads + reentrancy?
From: |
bindej |
Subject: |
Re: Guile + pthreads + reentrancy? |
Date: |
Tue, 2 Mar 2004 19:20:52 -0500 |
Mikael Djurfeldt writes:
> Each thread which has been spawned by scm_spawn_thread, that is.
>
> scm_spawn_thread calls pthread_create and sets up Guile things. If,
> for some reason, you need to create the pthread yourself and want to
> later make it able to use Guile, that could be arranged. Please tell
> me and I'll add this to the API (this is on the TODO list).
>
> M
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 is a serious problem because even functions such as
scm_thread_join take scm_t_thread arguments, and are thus unusable
outside of Guile.
What should I do about this?
- Re: Guile + pthreads + reentrancy?,
bindej <=