[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: threading issue in 1.8.3
From: |
Neil Jerram |
Subject: |
Re: threading issue in 1.8.3 |
Date: |
Sat, 19 Jan 2008 00:16:26 +0000 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Antoine Mathys <address@hidden> writes:
> Hello,
>
> I am having a problem with threads in 1.8.3 .
> It seems that for some reason you cannot load modules from a different thread
> than the one which first initialized guile.
>
> Any idea how to get this to work ?
Apologies for the delay in responding...
I think this is caused by the second thread not knowing what its
current module is. Can you try adding, before the scm_shell() call:
scm_set_current_module (scm_lookup_closure_module (SCM_BOOL_F));
and report if that helps?
> Thanks in advance.
>
>
> P.S.
> I used 'pthread_create' instead of 'scm_spawn_thread' for
> simplification because for some reason 'join-thread' has no C
> equivalent. But maybe I am missing something here as well ?
scm_join_thread ?
Regards,
Neil