unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Neil Jerram <neil@ossau.uklinux.net>
To: Antoine Mathys <antoine_mathys@yahoo.fr>
Cc: guile-user@gnu.org
Subject: Re: threading issue in 1.8.3
Date: Sat, 19 Jan 2008 00:16:26 +0000	[thread overview]
Message-ID: <87d4ry1xgl.fsf@ossau.uklinux.net> (raw)
In-Reply-To: <497155.28911.qm@web27613.mail.ukl.yahoo.com> (Antoine Mathys's message of "Fri, 11 Jan 2008 15:11:09 +0100 (CET)")

Antoine Mathys <antoine_mathys@yahoo.fr> 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





  reply	other threads:[~2008-01-19  0:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-11 14:11 threading issue in 1.8.3 Antoine Mathys
2008-01-19  0:16 ` Neil Jerram [this message]
2008-01-30 23:41   ` Neil Jerram
2008-02-01 22:54     ` Neil Jerram
  -- strict thread matches above, loose matches on Subject: below --
2008-01-31  1:11 Antoine Mathys
2008-02-01 21:01 ` Neil Jerram
2008-01-31  1:44 Antoine Mathys

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d4ry1xgl.fsf@ossau.uklinux.net \
    --to=neil@ossau.uklinux.net \
    --cc=antoine_mathys@yahoo.fr \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).