unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: set-thread-vm!
Date: Mon, 27 Sep 2010 21:47:48 +0200	[thread overview]
Message-ID: <m362xrnf2z.fsf@unquote.localdomain> (raw)
In-Reply-To: <87d3s17ath.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sat, 25 Sep 2010 23:49:46 +0200")

Hi :)

On Sat 25 Sep 2010 23:49, ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@pobox.com> writes:
>
>> What's the purpose of set-thread-vm! ?
>
> See commit 639b2eb7107b26207d13bb8acb4c1d38d7dba3bd : it is used to work
> around that fact that ‘scm_call_N’ uses whatever ‘scm_the_vm’ returns,
> which may be different from the calling VM.
>
> Perhaps that would be better solved by having ‘the-vm’ be a real fluid,
> though.
>
> Thoughts?

I removed these accessors, because they're not really threadsafe, and
they don't work in the way you expect. We should probably also exclude
multiple threads from using the same VM.

Anyway now there is call-with-vm, which I believe does what you want it
to do. Does that work for you?

Cheers,

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2010-09-27 19:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1747848995.3367116.1285406769922.JavaMail.root@zmbs1.inria.fr>
2010-09-25 21:49 ` set-thread-vm! Ludovic Courtès
2010-09-27 19:47   ` Andy Wingo [this message]
     [not found]   ` <519213700.3460773.1285616726166.JavaMail.root@zmbs1.inria.fr>
2010-09-27 20:22     ` set-thread-vm! Ludovic Courtès
2010-09-25  9:28 set-thread-vm! Andy Wingo

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=m362xrnf2z.fsf@unquote.localdomain \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@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).