* Re: set-thread-vm!
[not found] <1747848995.3367116.1285406769922.JavaMail.root@zmbs1.inria.fr>
@ 2010-09-25 21:49 ` Ludovic Courtès
2010-09-27 19:47 ` set-thread-vm! Andy Wingo
[not found] ` <519213700.3460773.1285616726166.JavaMail.root@zmbs1.inria.fr>
0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Courtès @ 2010-09-25 21:49 UTC (permalink / raw)
To: Andy Wingo; +Cc: guile-devel
Hello!
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?
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: set-thread-vm!
2010-09-25 21:49 ` set-thread-vm! Ludovic Courtès
@ 2010-09-27 19:47 ` Andy Wingo
[not found] ` <519213700.3460773.1285616726166.JavaMail.root@zmbs1.inria.fr>
1 sibling, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2010-09-27 19:47 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-devel
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <519213700.3460773.1285616726166.JavaMail.root@zmbs1.inria.fr>]
* Re: set-thread-vm!
[not found] ` <519213700.3460773.1285616726166.JavaMail.root@zmbs1.inria.fr>
@ 2010-09-27 20:22 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2010-09-27 20:22 UTC (permalink / raw)
To: Andy Wingo; +Cc: guile-devel
Hi!
Andy Wingo <wingo@pobox.com> writes:
> 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?
Yes, perfect!
(And it even does more, which looks nice. :-))
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* set-thread-vm!
@ 2010-09-25 9:28 Andy Wingo
0 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2010-09-25 9:28 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guile-devel
Hi Ludo,
What's the purpose of set-thread-vm! ? I can't think of many coherent
uses it could have, without having the ability to switch a thread from
one vm to another.
A
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-27 20:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 ` set-thread-vm! Andy Wingo
[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
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).